-
1. How do I make a From open itself into the Top Right corner of the screen?
2. What is the code to center a form on the screen, without useing "StartUpPosition"
3. I have a form that is opened and always on top, I want to be albe to click on it without having the main form show up. But I dont want to hide the main form totally!
-
Hi,
To make a form appear in the top right corner of the screen try this:
-----------
Private Sub Form_Load()
Form1.Left = Screen.Width - Form1.Width
Form1.Top = 0
End Sub
-----------
To make a form appear in the centre of the screen try this:
-----------
Private Sub Form_Load()
Form1.Left = Screen.Width / 2 - Form1.Width / 2
Form1.Top = Screen.Height / 2 - Form1.Height / 3
End Sub
-----------
To do the third thing you want:
-----------
'Ask somebody else!
-----------
Hope it helps!