-
Dear VB users,
I do have a form for choosing: drive / dir /and file.
Startup position is centre of the screen
This form will also used for choosing: drive / dir.
Before I make the form visible, I decrease the form width.
Everything is working correct only the form is no more in the centre of the screen.
Do someone knows to get it in the centre?
Nice regards,
Michelle.
-
This will center a form in the screen.
Code:
Me.Move (Screen.Width - Me.Width) / 2, (Screen.Height - Me.Height) / 2, Me.Width, Me.Height
Hope it helps.
-
Hello Iain17,
I did it know the me.!
It works good!
Michelle.