Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form top and left question
Message
 
To
08/01/2002 20:33:24
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00601770
Message ID:
00602430
Views:
27
This message has been marked as the solution to the initial question of the thread.
The Top property (just like the Left property) of a control inside a form is the value of that property inside the form (not inside the screen).

Try this:
.Move frmMain.Left, frmAddSku.cmdConfirm.Top + frmAddSku.Top
>Thank for your advise.
>I had set the startupPosition property of the form to 0, but
>it still don't show as I stated, but the left position is always
>correct, but not the top position.
>
>Below is my code to load the form, it should position the keyboard
>form at the same left position of my frmMain and its top should be at frmAddSku
>command button top position, but it just didn't. Please kindly advise.
>
> With frmKeyBoard
> .SetUp frmAddSku, "txtplu"
> .Move frmMain.Left, frmAddSku.cmdConfirm.Top
> .Show vbModal
> End With
>
>
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform