Form.SetBounds

  • Thread starter Thread starter Steve Long
  • Start date Start date
S

Steve Long

Hello,
I have tried a couple of ways to set the location of a form before it
becomes visible and the results have been erratic at best. My latest attempt
is to use the SetBounds method passing in the Left, Top, Width, Height of
the form but it doesn't come up in the same location as it should. Am I
missing something here? What is the best way to ensure the location of a
form before it becomes visible? Letting is become visible and then setting
the location is just ugly.

Steve
 
Steve Long said:
I have tried a couple of ways to set the location of a form before it
becomes visible and the results have been erratic at best.

Make sure the form's 'StartPosition' property is set to 'Manual'.
 

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