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:
00780268
Vues:
13
In an addin the 'form' is the endusers work, maybe a source module. What I want to do is a context menu. However, it's in a VS.NET addin. I know how to add menu items to the regular menus... But not to the context menu.

Joe.

>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.
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform