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!

Re: Form Start Position question by hirf-spam-me-here

hirf-spam-me-here
Mon Nov 24 13:00:15 CST 2003

* "craig" <e@mail.com> scripsit:
> 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?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Re: Form Start Position question by craig

craig
Mon Nov 24 15:15:46 CST 2003

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!

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:bptkjh$1oln88$3@ID-208219.news.uni-berlin.de...
> * "craig" <e@mail.com> scripsit:
> > 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?
>
> --
> Herfried K. Wagner [MVP]
> <http://www.mvps.org/dotnet>