473,322 Members | 1,408 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,322 software developers and data experts.

ToolStripMenuItem assign click event

VB.Net 2005 Pro

I am working in the designer and add a ContextMenuStrip to my form, and
attach it to a checklistbox control. Then I add a couple of
ToolStripMenuItems to the ContextMenuStrip and assign the properties and
images. Now I want to assign the Click event of the ToolStripMenuItem, but
I don't see anywhere to do this.

How do I add the click event from the designer?

Rick
Dec 20 '06 #1
2 7334
Can you not go to the code file and select the menu item from the controls
list on the left and then select the event fron the list on the right?
"Rick" <Ri**@LakeValleySeed.comwrote in message
news:er**************@TK2MSFTNGP02.phx.gbl...
VB.Net 2005 Pro

I am working in the designer and add a ContextMenuStrip to my form, and
attach it to a checklistbox control. Then I add a couple of
ToolStripMenuItems to the ContextMenuStrip and assign the properties and
images. Now I want to assign the Click event of the ToolStripMenuItem,
but I don't see anywhere to do this.

How do I add the click event from the designer?

Rick

Dec 20 '06 #2
Yes, I found it.

I was thinking it should be from the inplace editor where you add the menu
items, but there were no events available here.

Later I found it on the form itself, but it had been put out of view so I
did not see it until I scrolled down.

Thank you

"Samuel Shulman" <sa************@ntlworld.comwrote in message
news:e2**************@TK2MSFTNGP02.phx.gbl...
Can you not go to the code file and select the menu item from the controls
list on the left and then select the event fron the list on the right?
"Rick" <Ri**@LakeValleySeed.comwrote in message
news:er**************@TK2MSFTNGP02.phx.gbl...
>VB.Net 2005 Pro

I am working in the designer and add a ContextMenuStrip to my form, and
attach it to a checklistbox control. Then I add a couple of
ToolStripMenuItems to the ContextMenuStrip and assign the properties and
images. Now I want to assign the Click event of the ToolStripMenuItem,
but I don't see anywhere to do this.

How do I add the click event from the designer?

Rick


Dec 20 '06 #3

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

Similar topics

4
by: hb | last post by:
Hi, When I add an asp:button (ex: id=btnLog) on home.aspx, I need to create btnLog_Click() event in home.aspx.cs, and also link this event and the button in OnInit() method by adding:...
2
by: Maileen | last post by:
Hi, I've create an application which includes : - a toolstrip - a toolstripmenu - several toolstripmenuitem(s) so, now i have a menu like that : -File
2
by: rob | last post by:
I have a menu item that has a check mark. When ever the check mark is toggled I do a bunch of changes in the appropriate event handler. Now when the app starts I read the last settings and set the...
2
by: genojoe | last post by:
I have a VB 2003 project that I have updated to 2005. I notice that MenuItem is being phased out and replaced by ToolStripMenuItem. I want to investigate the new capabilities of this new control...
1
by: =?Utf-8?B?RjVGNUY1?= | last post by:
I have created a control by inheriting ToolStripMenuItem that has an image property called LargeImage. ------ public class EventSubMenuItem : ToolStripMenuItem { private Image _largeImage =...
1
by: Justin Cherniak | last post by:
I have a ToolStrip item which fires a function when clicked. The function will run to completion without any problems (if I set a breakpoint at the closing brace, no exception has been fired), but...
0
by: Equilibrium | last post by:
Hi , I have MenuStrip in a form and i've add a ToolStripMenuItem called toolStripMenuItemRoot. I want the items of this toolStripMenuItemRoot to always shown. At the beggining it's ok in the...
3
by: Martijn Mulder | last post by:
My application has a standard MenuStrip on top of the window and a ContextMenuStrip that pops up when the user clicks the right mouse button. I have defined a ToolStripMenuItem that I want to...
0
by: kyungdongkim | last post by:
Hi, I have a dynamically generated MenuStrip following this example: http://www.codeproject.com/useritems/Dynamic_MenuStrip.asp Basically the menu strip allows users to save and load reports. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.