Mark Levison

Musings on No Touch Deployment, .NET development and photography

<July 2008>
SuMoTuWeThFrSa
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789


Navigation

Other

Blogroll

Subscriptions

Post Categories



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 on Tuesday, January 04, 2005 9:22 PM by mlevison





Powered by Dot Net Junkies, by Telligent Systems