vsvb
asked on
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
thanks
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
thanks
ASKER
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??
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...
Me.Cursor = Cursors.Default
on the DragDrop event of the Tree...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
for a button Button1
Private Sub Button1_GiveFeedback(ByVal
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...