Form Start Position question

  • Thread starter Thread starter craig
  • Start date Start date
C

craig

When I set the StartPosition on my main form to CenterScreen, the form never
starts at center screen, but offset toward the lower right corner. On my
modal login form, however, the property seems to work just fine.

Am I overlooking something??

Thanks!
 
* "craig said:
When I set the StartPosition on my main form to CenterScreen, the form never
starts at center screen, but offset toward the lower right corner. On my
modal login form, however, the property seems to work just fine.

Am I overlooking something??

Maybe you are changing a property of the form like 'FormBorderStyle' or
something like that after showing the form?
 
Ahhhhhh. Yes. I now realize that I was setting the form size in the Load
event handler. Apparently, the start position calculation is made using the
size of the form in design mode.

Thanks for pointing me in the right direction!
 

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