Explorer Context menu in my ListView (newbie)

M

Marcel Hug

Hi NG !
I'm not shure if i'm in the right NG but I'm desperate because don't finding
help! So i try it here.
I have a little c# - application in which i showns some files in a listview.
Now i would like to get the Windows Explorer Context Menu, if i press the
right mouse button on a file.
I have a code in VB6.0 which uses the IShellFolder and IContextMenu. I'm
trying to transver this in C# but I do not understand what I exactly have to
do.

Could you please help me !
I don't know Shell-Programming so each tip is welcome.

Thanks
Regards

Marcel Hug
 
G

Guest

Marcel,

If you want to use IContextMenu you will have to use PInvoke to accomplish
this since the shell calls this interface. Fortunately Dino Esposito has a
very good article demonstrating how this can be accomplished. I have posted
the URL for you below.

PS: If you need to find the signature for any shell call a great resource is
to use www.pinvoke.net. Here you can find, edit and add signatures that you
might think will be helpful to someone.

I hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top