Changing Mouse Pointer

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
 
B

Bob

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top