Home All Groups Group Topic Archive Search About

How to add right click menu

Author
16 Dec 2005 7:14 PM
tedqn
Tool: Visual Studio 2005

I have a custom photo library application previously written in VS 6.
Basically it has
1) DriveListBox, DirListBox, FileListBox, all listed as
Microsof.VisualBasic.Compatibility.xxx
2) PictureBox inside a Panel (for auto showing scroll bars when photo
exceeds viewable area).
3) Buttons under FileListBox to Rename, Delete, etc file.

I'm thinking there must be something equivalent to Explorer that allows
you to single click to rename, right click with a bunch of options
(Rename, Delete, Cut, Paste, etc) that I can replace the FileListBox
with. If not, then I'd like to make it so that right click on a
selected file would prompt a context menu with a few basic options.

Thanks.

Author
16 Dec 2005 8:12 PM
Mattias Sjögren
>If not, then I'd like to make it so that right click on a
>selected file would prompt a context menu with a few basic options.

Have a look at the ContextMenu class.


Mattias

--
Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Author
17 Dec 2005 1:30 AM
tedqn
hi thanks. I figured it out.

AddThis Social Bookmark Button