Free Web Site - Free Web Space and Site Hosting - Web Hosting - Internet Store and Ecommerce Solution Provider - High Speed Internet
Search the Web

Move a form to center

VB Tips:  Form, Window


 

Sub MoveCenter(frm As Form)
'If want to show a form at center just when loaded, you only set this form's property "StartUpPosition" to "Screen Center"
   frm.Move (Screen.Width - frm.Width) / 2, (Screen.Height - frm.Height) / 2
End Sub


Copyright (c) 1999 - 2001, robert han, all rigths are reserved.