We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

On Right Click ?

Please help. I need to make it that on mouse right Click a little menue with custom choices to show up.

3 Replies

CB Clay Burch Syncfusion Team August 16, 2002 05:48 PM UTC

You can use the Control.ContextMenu property to set a contextmenu for a control. Use the designer and drop a ContextMenu onto your form, and then add menu items to this contextmenu. Then on the design surface, select the control (or form) that you want to have this menu, and set its ContextMenu property to point to this ContextMenu that you created.

AD Administrator Syncfusion Team August 19, 2002 01:55 PM UTC

Would you have some code saples or is there any place I can look it up.

CB Clay Burch Syncfusion Team August 19, 2002 08:58 PM UTC

I don't have any code samples as this can all be down from the designer. There is no need to write any code at all. Here is a link to the MS help for adding a context menu. ms-help://MS.VSCC/MS.MSDNVS/vbcon/html/vbtskAddingContextMenusToForm.htm

Live Chat Icon For mobile
Up arrow icon