Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Coding a pop-up menu..
Message
 
À
29/09/1999 13:04:12
Larry Santos
Local Data System
Philippines
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00270615
Message ID:
00270620
Vues:
14
>is there anyone can help me to code the pop-up menu so that i can manipulate by my code....

You can't modify the system popup menu but you can create you own. I don't know if it is your question but here is the way of creating your own:
1- Create a regular menu on a form (normally invisible).
2- In the MouseDown event of your control, display the popup menu like this:
Private Sub Text1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbRightButton Then
Text1.Enabled = False
Text1.Enabled = True
Me.PopupMenu mnuTest
End If
End Sub
É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