Context menu by drop a file with right mouse button

  • Thread starter Thread starter Marcel Hug
  • Start date Start date
M

Marcel Hug

Hello NG !
I would like to show the context menu which apears when i drop a file by
fight mouse button.

Could somebody help me ?
Thanks
 
Marcel,

You should be able to call the Show method on the ContextMenu class
instance to show the context menu. You just have to assign an event handler
to the DragDrop event and call it from there.

Hope this helps.
 
Yes of course, but I would like to have the same context menu which would be
shown in the windows explorer.
Are there no possibilities to shows this existing context menu (with copy
here, move here,.....Cancel) ?

Thanks


Nicholas Paldino said:
Marcel,

You should be able to call the Show method on the ContextMenu class
instance to show the context menu. You just have to assign an event handler
to the DragDrop event and call it from there.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Marcel Hug said:
Hello NG !
I would like to show the context menu which apears when i drop a file by
fight mouse button.

Could somebody help me ?
Thanks
 
Marcel,

Ahh, I understand now. I don't think that this would be possible, as I
don't think that there is an api that will show the default explorer menu.
You would have to do it yourself.

Also, you have to take into account the fact that the explorer menu
allows for shell extension handlers which can alter the contents of the
menu.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Marcel Hug said:
Yes of course, but I would like to have the same context menu which would
be
shown in the windows explorer.
Are there no possibilities to shows this existing context menu (with copy
here, move here,.....Cancel) ?

Thanks


in
message news:%[email protected]...
Marcel,

You should be able to call the Show method on the ContextMenu class
instance to show the context menu. You just have to assign an event handler
to the DragDrop event and call it from there.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Marcel Hug said:
Hello NG !
I would like to show the context menu which apears when i drop a file
by
fight mouse button.

Could somebody help me ?
Thanks
 
Back
Top