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.

Re: How to add right click menu by Mattias

Mattias
Fri Dec 16 14:12:58 CST 2005


>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.

Re: How to add right click menu by tedqn

tedqn
Fri Dec 16 19:30:11 CST 2005

hi thanks. I figured it out.