Simple code to center your form with the screen in VB 6.0.
'vb 6.0 and 5.0 Top = Screen.Height / 2 - Height / 2 Left = Screen.Width / 2 - Width / 2
Thanks to Vinz for this updated code. As he mentioned below, VB is indeed faster with multiplication than division.
Me.Top = Screen.Height * 0.5 - Height * 0.5 Me.Left = Screen.Width * 0.5 - Width * 0.5