Steps to reproduce:
- Create new Windows Application project
- Add control to the main form (e.g. ListView)
- Set form's WindowState to Maximized
- Override OnLoad() and OnShow() methods
- Set breakpoints on the calls to the base and run under debugger
- Note that the form is present on the screen when OnLoad() is hit (before call to OnShow())
- Note that form's content (the ListView) isn't visible yet
- Repeat same steps for WindowState set to Normal and compare

Maximized form is visible on the screen before call to OnShow()
Shaf2k
Is this really a problem
S10n
using System.Drawing;
using System.Windows.Forms;
class Form1 : Form {
private ListView ListView1;
public Form1() {
ListView1 = new ListView();
ListView1.Location = new Point(22,21);
ListView1.Size = new Size(569,356);
this.Text = "Form1";
this.Size = new Size(618,422);
this.WindowState=FormWindowState.Maximized;
this.Controls.Add(ListView1);
}
static void Main() {
Application.Run(new Form1());
}
}
To compile it use:-
csc /t:winexe filename.cs
Rick_Parker
dylanh