Main Page | Report Page

 

  .NET DotNet Forum Index » VB.NET Forum (Visual Basic .NET) » How do I write a code to activate a popup menu when I right click in a label control?

Author Message
Eng Teng
Posted: Sat May 03, 2008 9:43 am
 
How do I write a code to activate a popup menu when I right click in a label
control?

Regards,
Tee
 
kimiraikkonen
Posted: Sat May 03, 2008 9:43 am
 
On May 3, 5:43 pm, "Eng Teng" <engt...@gmail.com> wrote:
Quote:
How do I write a code to activate a popup menu when I right click in a label
control?

Regards,
Tee

Hi,
If you're meaning contextmenu by saying pop-up menu, you can show it
with a right click by just assigning ContextMenuStrip to a label from
properties window of label.

Thanks,

Onur
 
Armin Zingler
Posted: Sat May 03, 2008 10:07 am
 
"Eng Teng" <engteng@gmail.com> schrieb
Quote:
How do I write a code to activate a popup menu when I right click in
a label control?

In the Form designer, add a ContextMenu (or ContextMenuStrip) to the
Form. Select the label and set the ContextMenu (or ContextMenuStrip)
property in the property window.

http://msdn.microsoft.com/en-us/library/ms229641.aspx
(older ContextMenu:
http://msdn.microsoft.com/en-us/library/2961245e.aspx)


Armin
 
Herfried K. Wagner [MVP]
Posted: Sat May 03, 2008 10:13 am
 
"Eng Teng" <engteng@gmail.com> schrieb:
Quote:
How do I write a code to activate a popup menu when I right click in a
label control?

Add a contextmenu component to your form and assign it to the control's
'ContextMenu' property.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
 
art...
Posted: Fri May 09, 2008 5:04 am
 
Hi !,

Excuse me if I ask a related question and for help. I use MS
Visio2003 with a tablet pc. I'd like to be able to use the pen's mouse
button while in the application window to change the current mode of
things without having to navigate the toolbar or menus. This would
make the experience of using the SW very sweet and powerful.

I'd like to go for example from the selector tool to certain ink
tools (e.g eraser) with just a popup menu activated in the main
window. I am not a seasoned programmer so that is why I am looking for
help, even willing to pay for sample or working code. I have messed
around with the macro recorder in Visio so I think I had a handle on
changing the modes but how to work the menu's would take a real real
lot of my time which is where I'd prefer to pay or get help from a
seasoned programmer.


Cheers,
Art


On May 3, 8:13 am, "Herfried K. Wagner [MVP]" <hirf-spam-me-
h... at (no spam) gmx.at> wrote:
Quote:
"Eng Teng" <engt... at (no spam) gmail.com> schrieb:

How do I write a code to activate a popupmenuwhen I right click in a
label control?

Add a contextmenu component to your form and assign it to the control's
'ContextMenu' property.

--
 M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/
 V B   <URL:http://dotnet.mvps.org/dotnet/faqs/

 
Ralph...
Posted: Fri May 09, 2008 10:41 am
 
"art" <art at (no spam) rain.org> wrote in message
news:4fcc7d3a-ce55-43b3-b4e7-9ea201163189 at (no spam) s33g2000pri.googlegroups.com...
Hi !,

Excuse me if I ask a related question and for help. I use MS
Visio2003 with a tablet pc. I'd like to be able to use the pen's mouse
button while in the application window to change the current mode of
things without having to navigate the toolbar or menus. This would
make the experience of using the SW very sweet and powerful.

I'd like to go for example from the selector tool to certain ink
tools (e.g eraser) with just a popup menu activated in the main
window. I am not a seasoned programmer so that is why I am looking for
help, even willing to pay for sample or working code. I have messed
around with the macro recorder in Visio so I think I had a handle on
changing the modes but how to work the menu's would take a real real
lot of my time which is where I'd prefer to pay or get help from a
seasoned programmer.


============================================

Have you tried the "Microsoft Office XP Pack for Tablet PC"
http://www.microsoft.com/downloads/details.aspx?FamilyID=33790048-269B-4838-AB9E-74B64626A494&displaylang=EN

Support isn't quite up to what is available for Word, Excel, etc. But better
than nuth'n.

-ralph
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Thu Aug 25, 2016 6:46 pm