How to add right click menu

  • Thread starter Thread starter tedqn
  • Start date Start date
T

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