473,401 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

How do I write a code to activate a popup menu when I right click in a label control?

How do I write a code to activate a popup menu when I right click in a label
control?

Regards,
Tee

Jun 27 '08 #1
6 2154
"Eng Teng" <en*****@gmail.comschrieb
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

Jun 27 '08 #2
On May 3, 5:43 pm, "Eng Teng" <engt...@gmail.comwrote:
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
Jun 27 '08 #3
"Eng Teng" <en*****@gmail.comschrieb:
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/>

Jun 27 '08 #4
art
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...@gmx.atwrote:
"Eng Teng" <engt...@gmail.comschrieb:
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/>
Jun 27 '08 #5

"art" <ar*@rain.orgwrote in message
news:4f**********************************@s33g2000 pri.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/d...displaylang=EN

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

-ralph
Jun 27 '08 #6
art
On May 9, 8:41*am, "Ralph" <nt_consultin...@yahoo.comwrote:
Have you tried the "Microsoft Office XP Pack for Tablet PC"http://www.microsoft.com/downloads/details.aspx?FamilyID=33790048-269...

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

-ralph
Hi Ralph,

I think I have it installed. What is there in 2003 Visio on my tablet
is pretty darn good. It's just that if you could switch between simple
tools and modes you can really turbo charge your work flow and
concentration. If you draw or write a little idea down and you need to
quickly move it somewhere you have to stop what you are doing lose
your ink took go to select mode, select the item, move it, go back to
ink mode, then rememeber what you were doing. I envision the creative
work flow would be much better if you could just right click the mouse-
pen button and change things. There are plenty of other examples I
could give too.

. I'll have a look at the XP pack but I am pretty sure I have it
already. I still think Visio is a quick but program and I dont think
much of the ink applications out there. that is why I am trying to
enhance visio and the pen experience.

Thanks much
Jun 27 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Michel | last post by:
I like to show a inbetween selfmade menu when rightclicking the page. So on the first line I want to add "Default right-click menu". So first I need to capture it, then I need to stop the...
2
by: Jackson Yap | last post by:
can someone kind enough to help me look at the attached html and js file? Why is it that the javascript menu could not work at www.apchosting.net but could work at...
3
by: VM | last post by:
How can I display my own popup menu when a user right-clicks inside the form? I know you use context menus but I don't how to implement them. Thanks.
4
by: Randy | last post by:
I am trying to right click on a form and have a custom popup menu display. Does anyone know how to do this in vb.net. Thanks!
8
by: gumi | last post by:
Hi, I am looking for code for a alarm clock program that pops up a messege to be used as part of my VB.Net class project. Any help is very much appreciated. Thanks
2
by: Claire | last post by:
I've a treeview control containing a root node with several children on a windows form. I select a node with a left mouse button click. I then select one of the other nodes with right mouse click...
6
by: =?Utf-8?B?RWRC?= | last post by:
I am porting an app from VB6 to VS2005 (VB/Win Forms). It uses a context sensitive pop up menu. You know, you right click on something and an appropriately placed menu comes up. I can not find...
8
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
How can I make the 'Menu & Toolbars' menu active in the toolbox? Right now I can see the options, but not been able to select items.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.