Try setting the value of e.Effect in the DragEnter/DragLeave events.
HTH,
Bob
".NetHelpWanted" <(E-Mail Removed)> wrote in message
news:1187A3A7-3C07-4504-B1E0-(E-Mail Removed)...
> Hi All,
> I need a solution for the following scenario.
>
> I have 2 treeviews and one listview.
>
> the listview is populated with the contents of the treeview clicked.
>
> I have implemeted drag and drop functionality.
>
> When user clicks on treeview1 it's contents are populated in Listview
> simillarly when clicked on treeview2 iit's contents are populated in
Listview
> So at any point of time it will display content from one treeview only.
>
> Now my problem is that.
> When an user drags the contents of the listview to the same treeview that
populated i should change my mouse cursor to inavlid.
>
> And agin the cursor should become default when it leaves the control.
>
> Basically changing the cursor where appropriate.
>
> TIA
>
>
>
> --
> .NetHelpWanted
|