Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a right click
Message
Information générale
Forum:
ASP.NET
Catégorie:
Menus
Divers
Thread ID:
00779983
Message ID:
00780001
Vues:
19
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform