Click here to Skip to main content
15,903,385 members
Home / Discussions / C#
   

C#

 
GeneralRe: Dockable window Pin
fadi7-Dec-01 4:35
fadi7-Dec-01 4:35 
Generalgrid control Pin
Neill Jordan30-Nov-01 12:40
Neill Jordan30-Nov-01 12:40 
GeneralRe: grid control Pin
30-Nov-01 13:31
suss30-Nov-01 13:31 
GeneralRe: grid control Pin
jkgh3-Dec-01 5:17
jkgh3-Dec-01 5:17 
Generalsprintf() Pin
Rick Crone29-Nov-01 7:26
Rick Crone29-Nov-01 7:26 
GeneralRe: sprintf() Pin
Nish Nishant29-Nov-01 16:25
sitebuilderNish Nishant29-Nov-01 16:25 
GeneralRe: sprintf() Pin
Eric Gunnerson (msft)3-Dec-01 8:36
Eric Gunnerson (msft)3-Dec-01 8:36 
GeneralVisual Studio .NET forgets WindowState of base-class Form Pin
Mike Morearty25-Nov-01 8:45
Mike Morearty25-Nov-01 8:45 
VS.NET bug: In Visual Studio, if you have one Form which has its WindowState property set to "Maximized", and you then derive a second Form from that first one, the derived Form does not correctly inherit the WindowState from its parent. It will often end up with a WindowState of "Normal".

The same may be true of the "Minimized" state; I haven't tried it.


Repro steps:
1. Create new project: C#, type "Windows Application", any name.
2. Form1 is now open. In the Properties pane, set WindowState to "Maximized".
3. Build and run the program. The window is maximized, as it should be.
4. Select "Project > Add Windows Form..." from the menus. In the right pane (Templates), select "Inherited Form." Leave the name as "Form2.cs". Click Open. When the "Inheritance Picker" dialog comes up, select "Form1" as the base class.
5. Notice that over in the Properties pane, the WindowState for Form1 is "Normal", not "Maximized"! Oops.
6. Open Form1.cs, and in the Main() function, change "new Form1()" to read "new Form2()", so that Form2 is the one that will be launched by the program.
7. Run the program. Despite the fact that the Properties pane said "Normal", the program is in fact maximized. Oops.
8. Open Form2 in the Designer. Drop a button on it. Doing this will force Visual Studio to re-generate the Form2.InitializeComponent() function.
9. Run the program again. Now, notice that it is NOT maximized! Oops.

You'll find that you can manually change WindowState back to "Maximized", but then, from time to time (I think mainly when you reload the project), Visual Studio will switch it back to Normal.

Mike Morearty
mike@morearty.com
http://www.morearty.com
QuestionHow to create a container control Pin
Fairytale24-Nov-01 2:37
Fairytale24-Nov-01 2:37 
AnswerRe: How to create a container control Pin
Makyana17-Dec-01 9:55
Makyana17-Dec-01 9:55 
GeneralRunning an external program Pin
Tariq20-Nov-01 19:25
Tariq20-Nov-01 19:25 
GeneralRe: Running an external program Pin
Andreas Philipson21-Nov-01 4:20
Andreas Philipson21-Nov-01 4:20 
GeneralRe: Running an external program Pin
Tariq21-Nov-01 7:17
Tariq21-Nov-01 7:17 
GeneralRe: Running an external program Pin
Andreas Philipson21-Nov-01 8:19
Andreas Philipson21-Nov-01 8:19 
GeneralGetProcesses(string machinename) method... Pin
20-Nov-01 12:12
suss20-Nov-01 12:12 
GeneralXML in function descriptions doesn't correctly deal with less-than and greater-than Pin
Mike Morearty18-Nov-01 19:47
Mike Morearty18-Nov-01 19:47 
GeneralRe: XML in function descriptions doesn't correctly deal with less-than and greater-than Pin
Paul Watson21-Nov-01 4:57
sitebuilderPaul Watson21-Nov-01 4:57 
GeneralEventLog or System.Diagnostics classes not working.. Pin
16-Nov-01 6:26
suss16-Nov-01 6:26 
GeneralRe: EventLog or System.Diagnostics classes not working.. Pin
Andreas Philipson16-Nov-01 11:57
Andreas Philipson16-Nov-01 11:57 
GeneralRe: EventLog or System.Diagnostics classes not working.. Pin
20-Nov-01 12:15
suss20-Nov-01 12:15 
QuestionHow can show a child window whith the main window Pin
aner_glx15-Nov-01 22:31
aner_glx15-Nov-01 22:31 
GeneralRunning C# Windows Application Pin
Rick Crone15-Nov-01 6:03
Rick Crone15-Nov-01 6:03 
GeneralRe: Running C# Windows Application Pin
Nish Nishant15-Nov-01 13:41
sitebuilderNish Nishant15-Nov-01 13:41 
GeneralURL for .NET redistributable Pin
Nish Nishant15-Nov-01 13:50
sitebuilderNish Nishant15-Nov-01 13:50 
GeneralRe: Running C# Windows Application Pin
Paul Watson17-Nov-01 4:27
sitebuilderPaul Watson17-Nov-01 4:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.