Home All Groups Group Topic Archive Search About

ToolStripMenuItem assign click event

Author
20 Dec 2006 9:25 PM
Rick
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

Author
20 Dec 2006 11:07 PM
Samuel Shulman
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?


Show quoteHide quote
"Rick" <R***@LakeValleySeed.com> wrote in message
news:erNZi1HJHHA.3936@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
>
Author
20 Dec 2006 11:48 PM
Rick
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

Show quoteHide quote
"Samuel Shulman" <samuel.shul***@ntlworld.com> wrote in message
news:e2FqluIJHHA.3952@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" <R***@LakeValleySeed.com> wrote in message
> news:erNZi1HJHHA.3936@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
>>
>
>