Drag icon problem

In my form there are some command button each contain image
and there is one treeview control

now i  am drag item from command button to treeview and in treeview
i am creating new node programmatically

i not able to success in when i drag item form command button to
treeview my mouse icon is normal dragicon without image but i want same icon of mouse like
that command button contain ... if i drag item from another command
button then dragicon and dropicon should be shame as that command button image

this is same for inside treeview all node contain different icon if i drag and drop some node
inside treeview the icon of drag and drop is normal move and copy icon .. but i want
same icon that sourcenode contain when i drag form that node and drop some another node

any one give me any example how to make this

Who is Participating?
more important.....remember to put the ..

me.cursor = cursors.default

..code immediately after the button.DoDragDrop(....) function wherever u have called it...that will change back the cursor after the drag is completed..
use the GiveFeedBack event of the Source control...for example :

for a button Button1

  Private Sub Button1_GiveFeedback(ByVal sender As Object, ByVal e As System.Windows.Forms.GiveFeedbackEventArgs) Handles Button1.GiveFeedback
        e.UseDefaultCursors = False
        tempCursor = New Cursor("yourpic.cur")
        Me.Cursor = tempCursor
    End Sub

the New Cursor() constructor works for ICO files and BMP files as well...
vsvbAuthor Commented:
hi gopinathdeepak  thanks
its works but..
when my drop node on tree how can i make it again cursor again normal  mins window default one??

bring the cursor back to default by

Me.Cursor = Cursors.Default

on the DragDrop event of the Tree...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.