Hello all.
I would like to add a small handler.
Imagine that i have a listbox, and when i right click i want to appear a menu with two options .
How can i do it ?
Thanks in advance.

Recommended Answers

All 3 Replies

You should drop a "contextMenuStrip" on to the form. You can click on it and add items in the designer. Also click on the listbox and assign the "ContextMenu" property to the new context menu strip you dropped on the form

Thanks for the fast response ,works gr8 =)

You're welcome and good luck! :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.