Mark Levison

Musings on No Touch Deployment, .NET development and photography

<May 2008>
SuMoTuWeThFrSa
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567


Navigation

Other

Blogroll

Subscriptions

Post Categories



Tuesday, January 04, 2005 - Posts

Loading your Winforms Application at specific location?

I spent a frustrated half-hour today trying to set the Location property of my Application and couldn't get it to work.  In the end an email to DevelopMentor Winforms mailing list solved the problem. To have your choice for location respected you must set the StartPosition property to Manual. While it was a pain to discover StartPosition, it will do some of the hard work for you. If all you need is to centre your form on the Screen or its parent then use CenterParent or CenterScreen (members of the FormStartPosition enum).  I guess I just missed StartPosition in the morass of properties that a Form has.

Thanks to Dean Cleaver (aka Dino) for pointing me in the right direction.

posted Tuesday, January 04, 2005 9:22 PM by mlevison with 0 Comments




Powered by Dot Net Junkies, by Telligent Systems