HI
Try handling in Drag Over event of Tree View. If its
1.Valid node set e.Effects = DragDropEffects.Move // Default Curesor
+Rectangle cursor
2. Invalid Node Set e.Effects = DragDropEffects.None
-----------------------------------------------------------------------------
[quoted text, click to view] "Vlad" wrote:
> Hi all.
>
> Is there a way to get to the default "drag" cursor
> ("arrow-and-some-rectangle") during drag-and-drop? I'm doing drag-and-drop
> in TreeView and need to show user that he/she cannot drop dragged item in
> particular nodes. So, this part actually works great, user sees Cursors.No
> while dragging over invalid node in the tree. But what if the next node is
> valid for dropping? I tried Cursors.Default, it shows the system default
> pointer (of course). Can I get to the default "drag" cursor back? I tried to
> set the UseDefaultCursors of GiveFeedbackEventArgs to true and false with no
> result.
>
> Thanks for any kind of help!!
>
>
Thanks!! This is exactly what I was looking for.
[quoted text, click to view] "Tarun Gujral" <TarunGujral@discussions.microsoft.com> wrote in message
news:23C073CE-2F61-4AF0-9BEE-0A5181515856@microsoft.com...
> HI
>
> Try handling in Drag Over event of Tree View. If its
>
> 1.Valid node set e.Effects = DragDropEffects.Move // Default Curesor
> +Rectangle cursor
>
> 2. Invalid Node Set e.Effects = DragDropEffects.None
>
> -----------------------------------------------------------------------------
>
> "Vlad" wrote:
>
>> Hi all.
>>
>> Is there a way to get to the default "drag" cursor
>> ("arrow-and-some-rectangle") during drag-and-drop? I'm doing
>> drag-and-drop
>> in TreeView and need to show user that he/she cannot drop dragged item in
>> particular nodes. So, this part actually works great, user sees
>> Cursors.No
>> while dragging over invalid node in the tree. But what if the next node
>> is
>> valid for dropping? I tried Cursors.Default, it shows the system default
>> pointer (of course). Can I get to the default "drag" cursor back? I tried
>> to
>> set the UseDefaultCursors of GiveFeedbackEventArgs to true and false with
>> no
>> result.
>>
>> Thanks for any kind of help!!
>>
>>
>>