Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Showing a contextMenu
Message
 
À
19/03/2003 19:23:29
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00767833
Message ID:
00768006
Vues:
13
*Update: I got it: Me.ContextMenu1.Show(Me, New Point(e.X, e.Y))

Bonnie

Thanks for the stab. But I think I need the step right before your code. I have the following event:
Private Sub Schedule1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Schedule1.MouseDown
        If e.Button = MouseButtons.Right Then
            'Me.ContextMenu1.Show(me.ContextMenu1,e.X )     <<==== this line doesn't work.

        End If
End Sub
So, basicly this is the event based off a user form control. If it is a right-click event I want to actually display my menu. I don't know how to actually make the menu pop up on the screen. I think your code adds the menu items to the menu and then captures which menu option they clicked. But from the event above I first need to get the menu to display on the screen. All the help I've read shows to link it to the contextmenu property of a form control. But this is a user-control without that property.

Thanks for all the help

Kirk
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform