-
Jan 28th, 2000, 02:34 PM
#1
Thread Starter
Member
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!
-
Jan 28th, 2000, 05:47 PM
#2
Hyperactive Member
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|