# [.net] My window refuses to say put

## Recommended Posts

How can I set the location of a Form when it comes up, relative to the top left of the screen? I tried using the Location property, the DesktopLocation property, the Dock, the Top and Left properties, even all at once, but the window still refuses to go where I tell it. Any suggestions?

##### Share on other sites
form.StartPosition = FormStartPosition.Manual;form.Location = new Point(wherever);

Both properties should be settable in your GUI design tool. You can also use FormStartPosition.CenterScreen if that's what you're trying to do, which will get it right whatever the resolution.

##### Share on other sites
wow, it worked, thanks alot!

## Create an account

Register a new account

• ## Partner Spotlight

• ### Forum Statistics

• Total Topics
627642
• Total Posts
2978354

• 10
• 12
• 22
• 13
• 33