Getting right click menu and executing command

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How to get right click menu of a file and execute the commands from my vb
..net application. Minimally, I want to handle the image files with commands
like "open" and "open with".

More Scenario Description:
I will show an image in my form. User can click on that image and use "open"
or "open with" commands. "Open" command automatically opens the image using
default access program. If "Open with" command is chooosed than the "open
with" dialog appears and user can choose the program.

Please suggest me how to do this. You are also invited to suggest any
alternate way.

Thanks in advance,
-yogee
 
Yogee,

Have a look at "Context menu" in MSDN. They are different handled in Net 1.x
and 2.0 versions.

I hope this helps,

Cor
 
I guess "context menu" controls helps to add your custom comman in the
"context menu". But I want to run "Open" and "Open with" command for an
image. Is it possible?
 
Back
Top