Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form top and left question
Message
 
À
08/01/2002 20:33:24
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00601770
Message ID:
00602430
Vues:
22
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform