The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Loading your Winforms Application at specific location?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Mark Levison

Posts: 877
Nickname: mlevison
Registered: Jan, 2003

Mark Levison an agile software developer who writes Notes from a tool user.
Loading your Winforms Application at specific location? Posted: Jan 6, 2005 12:44 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Mark Levison.
Original Post: Loading your Winforms Application at specific location?
Feed Title: Mark Levison
Feed URL: /WebLog/error.aspx?aspxerrorpath=/WebLog/mlevison/Rss.aspx
Feed Description: Musings on No Touch Deployment, .NET development and photography
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Mark Levison
Latest Posts From Mark Levison

Advertisement

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.


This Blog Hosted On: http://www.DotNetJunkies.com/

Read: Loading your Winforms Application at specific location?

Topic: Snippet Compiler 2.0 Previous Topic   Next Topic Topic: SharePoint 2003 Resource Center

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use