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.
Unfortunately, activation email could not send to your email. Please try again.

On Right Click ?

Thread ID:





778 Aug 16,2002 08:25 AM Aug 19,2002 04:58 PM Windows Forms 3
Tags: FAQ
Asked On August 16, 2002 08:25 AM

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

Clay Burch [Syncfusion]
Replied On August 16, 2002 01:48 PM

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.

Administrator [Syncfusion]
Replied On August 19, 2002 09:55 AM

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

Clay Burch [Syncfusion]
Replied On August 19, 2002 04:58 PM

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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.