Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the clicked object on a context menu
Message
De
25/08/2005 12:59:30
 
 
À
25/08/2005 05:48:50
Information générale
Forum:
ASP.NET
Catégorie:
Menus
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP
Divers
Thread ID:
01043684
Message ID:
01043968
Vues:
24
Omar,

I think, if I understand correctly what you're trying to do, that you should be putting the processing of the selected names in the menu handler, not trying to do it after you show the menu. So, something like this:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        cm.Show(TextBox1, New Point(0, 0))
    End Sub

    Private Sub mnuHandler(ByVal sender As Object, ByVal e As System.EventArgs)
        selected = CType(sender, MenuItem).Text
        me.ProcessSelected(selected)
    End Sub

    Private Sub ProcessSelected(string select)
        ' code here to process the menu selection 
    End Sub
~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform