Cannot center position my form?

  • Thread starter Thread starter Shakil
  • Start date Start date
S

Shakil

I have a simple form application, in C# in which I call:

this.StartPosition = FormStartPosition.CenterScreen;

in my forms constructer. But, my form is still not positioned in the center
of my Desktop Screen. Instead it gets positioned at the top left most corner
on my Desktop. Can you tell me what I am doing wrong here? Or is there
something else too, that I need to do for this?
 
* "Shakil said:
I have a simple form application, in C# in which I call:

this.StartPosition = FormStartPosition.CenterScreen;

in my forms constructer. But, my form is still not positioned in the center
of my Desktop Screen. Instead it gets positioned at the top left most corner
on my Desktop. Can you tell me what I am doing wrong here? Or is there
something else too, that I need to do for this?

Select the 'StartPosition' in the designer or set it /after/ the call to
'InitializeComponent'.
 
Back
Top