Click here to Skip to main content
15,912,021 members

Comments by cluelessentity (Top 10 by date)

cluelessentity 22-Mar-17 7:06am View    
Nop.
I can right click on contextMenuStrip.
I want to click on the items under contextMenuStrip that are called Tool Strip Menu Items. And I need to provoke an event and do stuffs in that event when these items are clicked.
cluelessentity 22-Mar-17 7:00am View    
@Karthik,

There is no right click I can make on the Tool Strip Menu Item.
Like we have collections in a combo-box, the same way I have Tool Strip Menu Items in ContextMenuStrip. So, when I select - right click on ContextMenuStrip, there is a property called Items. When I click on the (Collections) for the Items property, at that time I can add as many Tool Strip MEnu Items as I want but there is no right click on them. Also no events on them.
cluelessentity 22-Mar-17 6:36am View    
@Karthik
Thank you for your comment. But this ain't that simple.
This Menu is not like normal menu. It grows under ContextMenu linked to a NotifyIcon.
That means, on bottom right side of the screen, just next to the battery indicator of any windows laptop, near the clock I have my NotifyIcon. When I right click, it gives two menu items here.
cluelessentity 24-Feb-17 6:26am View    
Genius you are madhav_jain.
It worked.
Karthik's solution helped me to get value in the combobox. And your's helped to save it in another table.
You made my day!
Thanks a tonne :)
cluelessentity 24-Feb-17 6:10am View    
Exactly, that doesn't work.
But even if I get the PlanID as valuemember in combobox, the same is not being retrieved while saving in the database for another table.

If used as cbPlan.ValueMember, it returns PlanID.
IF used as cbPlan.Text, it returns the PlanName.