Hi,
I need to prohibit a drag/drop where the source and destination
are the same. To do this the DragOver event handler needs to
know it you are dragging over the control where the drag
originated or a possible drop destination. How? In this case
both source and destination are ListView and use the same
code for drag/drop.
I am using
if (ReferenceEquals(SourceControl, SendingControl))
e.Effect = DragDropEffects.None;
else
e.Effect = e.AllowedEffect;
Thanks,
Gary