424,303 Members | 1,366 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,303 IT Pros & Developers. It's quick & easy.

Changing Mouse Pointer

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Bob
Try setting the value of e.Effect in the DragEnter/DragLeave events.

HTH,
Bob

".NetHelpWanted" <Ne***********@discussions.microsoft.com> wrote in message
news:11**********************************@microsof t.com...
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


Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.