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!
 
Back
Top