How do I center an application on the desktop when starting?

  • Thread starter Thread starter Bill Gates
  • Start date Start date
B

Bill Gates

On opening, I would like my application to be centered on the desktop rather
than set randomly. Can someone tell me what I need to do to accomplish this?
 
Hi Bill Gates (wow!)

Just set form.StartPosition = FormStartPosition.CenterScreen.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top