Changing Mouse Pointer

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Try setting the value of e.Effect in the DragEnter/DragLeave events.

HTH,
Bob

.NetHelpWanted said:
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.
 
Back
Top