Hiya!
I wanna do a node which outputs Drag and Drop information about a window selected by a handle. I searched for it and I found very simple solutions like this http://www.jonasjohn.de/snippets/csharp/drag-and-drop-example.htm which was planned to be used for listboxes.
currently i only want a simple bang when DragEnter, DragDrop and DragLeave happens on that window and maybe i would like to retrieve the string what is dragged. Anyway I’ve only came to a mess which produces nothing but an “Object reference not set to an instance of an object.” exception. I’m suspicious that i’ve used “this”
window.DragEnter += new DragEventHandler(this.window_DragEnter);
in a wrong way. however if i say
window.DragEnter += new DragEventHandler(VVVV.Nodes.WindowsDragAndDropNode.window_DragEnter);
instead of “this” the compiler says
“An object reference is required for non-static field, method or property ‘VVVV.Nodes.WindowsDragAndDropNode.window_DragEnter(object, System.Windows.Forms.DragEventArgs)’”
however in all examples the method called on the event doesn’t have those “object” and “DragEventArgs” arguments in the DragEventHandler() just in the declaration so I don’t really understand where those two come from in the examples as well.
Anybody could help with this?
this is what i’m talking about (19.5 kB)