By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,646 Members | 2,063 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,646 IT Pros & Developers. It's quick & easy.

forms

lee123
100+
P: 556
how do i make the form be center of the screen in code so when i'm get done with my application i would like it to be center of the screen when i ( package and deploy) it does anybody know how?

lee123
Dec 24 '07 #1
Share this Question
Share on Google+
2 Replies


lotus18
100+
P: 866
Hi Lee

Choose the form you want to be on the center of the screen, then from the Properties > Startup Position > Center Screen - 2.

If you are working with MDI child form and you want the child form to be at the center of the MDI parent form, try this code:

Expand|Select|Wrap|Line Numbers
  1.     Move (Screen.Width - Me.Width) / 2, ((Screen.Height - Me.Height) / 2)
  2.  
Rey Sean
Dec 25 '07 #2

lee123
100+
P: 556
Hey Lotus18,

Thanks For The Info. It worked!!!

lee123
Dec 25 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.