Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding a right click
Message
General information
Forum:
ASP.NET
Category:
Menus
Miscellaneous
Thread ID:
00779983
Message ID:
00780001
Views:
21
Hi Joe,

Are you referring to creating Context Menus? If so, then you would do the following:

1. Drag a ContextMenu onto your form from the toolbox.
2. Right-Click on the ContextMenu and choose Edit Menu.
3. Create the Menu Bars that you want displayed.
4. For each Menu Bar, double-click to create the Handler for the Click event.
5. Write the code for each Menu Bar. You can reference the controls on the form to manipulate them as needed. The event handler is at the form level so you can start off as Me.MyControl.
6. For each control on the form that you want to use this Context Menu, set the ContextMenu property to the ContextEditor control. You can set this in code or in the Properties Window.

>Two questions one post. :)
>When creating an addin using VB.NET:
> - How do you add a right click menu item?
> - How do you reference the selected text?
>
>My humble thanks in advance,
>Joe.
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform