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'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top