SJGREEN's Q&A profile
.NET Development asp.net 2.0 masterpage image question
The http://forums.asp.net site is for questions regarding ASP.NET, whereas this site is for general questions regarding .NET, Windows Forms, SQL Server and Visual Studio. ...Show All
Windows Forms book for learning to develop controls
I can't seem to find a good book focusing on developing custom controls. Every book I've bought or looked through seems to just skim the surface of creating controls because the book as a whole focuses on either asp.net or win forms or something larger in scale and therefore only devotes maybe 1 chapter to custom controls. I've looked through&nb ...Show All
Windows Forms Hide certain standard control's properties from designer
Hi, I created a custom control which inherited from Forms.Button. There's no problems to create & expose custom properties but... I cant find anyway to hide the standard Button's properties... Note that I'm using J# Thanks override the property, apply the Browsable(false) attribute. . . call the base property to access it. this is c#, but the approach should be the same: public partial class MyTextBox : System.Windows.Forms. TextBox { [System.ComponentModel. Browsable ( false )] public override string Text { get { return base .Text; } se ...Show All
SQL Server From PL/SQL to SQL Server
I need your help, I have a candidate (yes I am a Recruiter but new to IT) who has 15 years experience of developing in oracle. Particularly PL/SQL. He wants to move over to SQL Server and most clients will not look at assisting in the training required. For those out there those have changed from one to the other please could you tell me how you went about it and how difficult it was Thank you in advance It's pretty easy, the principles are the same, I suggest he downloads SQL express (which is free) and gets a book on the subject, and he will be going in no time. Things to focus on: 1. Stored Procedures 2. JOINS (INNER and OUTE ...Show All
Visual C# height and width
my web user control is composed by a panel (h=100%,w=100%) which contains a table (h=80%,w=100%) with a datagrid and a button and a panel (h=fixed px,w=100%)with another table. This second panel is first invisible and then visible when button is clicked. I try to put it in my web form where there is a table. My problem is that if the table in web form is short, the user control not resize and i can't see the second panel. Thx If I understand your situation correctly, you should explicitly set the height of the cell that contains the user control to the minimum allowable height for the user control to be fully se ...Show All
Windows Forms Why can't I do this Thread t1 = new Thread(new ThreadStart(sweeper.Traverse(dir)));
It throws a error saying it needs a method, but obvisouly it is a method. but the method needs parameter to pass. Can anyone help Thanks a million in advance Nope, If you are going to start a thread and pass it data, you have to use an object to do it like so: public class DirectoryThread { public string Directo ...Show All
Visual C# Windows Service
I'm writing a windows service application and I need many Windows Application to read/write the same variable in windows service. If a client set this variable to a value, I need that a second client read the value set by the first one. I've tried to declare a static variable, but it don't work. Sample (in the Windows Service): .... .... public static int myVar = 0; public void Add() { myVar++; } in the Windows Application: private void myMethod() { myServiceClass s = new myServiceClass(); s.Add(); } If a first client call the myMethod the variable myVar in the Service ...Show All
Visual Studio Team System Error 32000 with createds.exe; PLEASE HELP!
Hi all. I am getting an error when I am almost at the end of single-tier installation of the Beta 2 version. Upgraing to the latest release is not an option for me so could any one please help me through this The command line and the error are below: C:\Program Files\Microsoft Visual Studio 2005 Enterprise Server\BISIISDIR\uninst all>createds " http://FOUNDATIONSRVR/ReportServer/ReportService.asmx " TfsReportDS "Data source=FOUNDATIONSRVR;initial catalog=BisDWDB" "MARSFOUNDATION\TFSService" "01000000d08c9ddf0115d1118c7a00c04fc297eb01000000a07e8ac721d1d14c830e39f069f0b ee000000000220000005500730065007200200049006e0066006f ...Show All
Windows Forms Taskvision Server in different location!
What are the things i need to modify if i want to install my taskvision server to a different computer, and the database in a different computer im having difficulty customizing it. ive already done modifying the connectionstring in web.config, but still doesn't work! please help me! thnx a lot! I went through that headache too. I was clueles ...Show All
.NET Development Help: DotNet Tcp Client Bound
Hi All, I am using a TCP server to accept connections from n TCP clients (with Socket.Select()). It seems that there is a strange bound on the value of n in Socket.Select. Steps to reproduce the problem. 1. Bring up a TCP server on port 19999 in a thread. This thread use a socket arraylist as the first parameter for Socket.Select(). 2. Bring up client threads one at a time, with 1 second inteval between two client threads. Each thread creates a client and connects to that server. The number of client thread is n. 3. When the number&nb ...Show All
Visual Studio Express Editions Directory searching
Using: Directory.GetFiles(string path, string searchPattern) Is there a way to specify multiple file types in the search pattern What I'm trying to do is get all BMP, PNG, and JPG files from a directory without having to search the same directory three times to get all of the files. Thanks in advance, Bill I don't think so it is possible for provide multiple search patterns like "*.jpg | *.bmp". i faced this problem also a little while ago, but was unable to find any solution. Workaround : Get all the files from the directory and then compare each file extension ...Show All
Visual Studio 2008 (Pre-release) avoiding right arrow presses after entering a quoted property
As I'm going through the FebCTP examples, I'm entering the xaml in manually to explore and better remember the available properties. When entering a property like VerticalAlignment that has in-built options (Stretch, Top, Etc.), pressing tab results in the cursor moving to the right of the quote. This is helpful and allows entering further properties without moving to the arrow keys. When entering a property value that isn't appearing in intellisense (like a Heading or Click that is done manually), pressing tab or enter just insert whitespace inside the quotes. Pressing shift+enter results in a newline being created above and the cursor ...Show All
Windows Forms MySQLDataAdapter Insert Not Working...
Can anyone see why this insert command is not working It is not generating any error messages. It acts as if it has inserted the records, but when I check the database the row count is still 0. Here is my code... <hr> <color="Blue"> Public Sub UploadJournals() 'Import table structure. Dim mSQL As String = "SELECT * FROM salejnls" Dim conStr As String ...Show All
SQL Server How can I tell which CTP I have?
I received SQL Server 2005 CTP in my June MSDN shipment. But it seems to be missing specific functionality that I would expect in the latest June CTP. Specifically, I don't see the 'Transfer Database' task in the Integration Service project template. A fellow on the NG told me that he has this task in his environment. He reported his SQL version as being 9.00.1187.07, while my version is 9.00.1116.00. So which CTP do I have Am I using April or June Thanks for your help! Here's my complete SQL Server version info: Microsoft SQL Server Management Studio (expires in 365 days) 9.00.1116.00 Microsoft Analysis Services Client Tools &nb ...Show All
SQL Server YTD calculations performance
Hi, I'm having problems with a calculated measure which is being used for returning year to date sales from the product dimension. The problem is that the performance is incredibly slow even on a very small subset of the data, and I haven't actually managed to have the sample query (below) return as of yet (I've had it running for 45+ minutes). The measure is very simple: CREATE MEMBER CURRENTCUBE.[MEASURES].[Sales YTD] AS Aggregate(PeriodsToDate([Time].[Year - Month].[Year], [Time].[Year - Month].CurrentMember), [Measures].[Sales]) I'm using it in the following query which should return about 370 rows: SELECT NON EMPTY { [Me ...Show All
