|
-
Sep 27th, 2000, 09:10 PM
#1
Thread Starter
Lively Member
How to position a control in the lower right corner
of a MAXOMIZED form!
0101011001000010
01101111011011100110110001101001011011100110010101110010
-
Sep 27th, 2000, 09:20 PM
#2
Frenzied Member
Dont use the form maximize thing, instead use the code I provided below
Code:
Private Sub Form_Load()
Form1.Height = Screen.Height
Form1.Width = Screen.Width
Form1.Left = 0
Form1.Top = 0
'lets say that the control is a label
Label1.Left = Form1.Width - Label1.Width
Label1.Top = Form1.Height - Label1.Height * 2
End Sub
NXSupport - Your one-stop source for computer help
-
Sep 27th, 2000, 09:57 PM
#3
Thread Starter
Lively Member
0101011001000010
01101111011011100110110001101001011011100110010101110010
-
Sep 27th, 2000, 10:11 PM
#4
This code (MAXIMIZE):
Code:
Private Sub Form_Load()
Form1.Windowstate = vbMaximized
Label1.Left = Form1.Width - Label1.Width
Label1.Top = Form1.Height - Label1.Height * 2
End Sub
and yours is the same thing, dimava, you can maximize the form and still get the screen width.
Some forms cannot be sized beyond a point, and the user may maximize a form, in which case your code might generate an error.
Also, if you size the form that way, it would allow the user to resize it, and it's handlebars would be sticking out.
-
Sep 27th, 2000, 10:27 PM
#5
Frenzied Member
what happens when you set the form's property to MAXIMIZE is that you are saying:
I'm only gonna put stuff on what I have in the dsign view, and just put the back ground color on the remaining part
the code that I did is saying:
I'm gonna use the whole screen, and put stuff on the whole screen, not just the box that I put stuff in at design time
NXSupport - Your one-stop source for computer help
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
|