I need a litle help with dragdrop...


I can't find anything useful on google...

I have a ComponentOne True Grid and Windows Forms Treeview

i want to drag an item from the grid and into Microsoft Treeview...

so far i have done this:
grid.allowdrag = true
tree.allowdrop = true

private sub grid_mousemove (sender as object, e as drageventargs)
handles grid.mousemove
if e.button = left then
grid.dodragdrop(grid,copy)
end if
end sub

private sub tree_dragdrop (sender as objet, e as drageventargs) handles
tree.dragdrop
... code that does everything i need
end sub

the problem is that event tree.dragdrop doesn't happen...
only tree.dragenter

i remember that in vb6 tere was something called 'dragmode' and it was
allways set to 'automatic'



please help






--
You're not paid to think. A mindless worker is a happy worker. Shut up
and do your job!
- Tata Feudalac!

--------------------------------------------------------
http://www.fotozine.org/index.php?stranica=clan&uid=1352
http://www.thinkgeek.com/brain/gimme.cgi?wid=81d35dc8f
http://groups.google.com/group/fejkneraddangub
--------------------------------------------------------

Re: Drag Drop (C1 and windows forms) by feudalac!

feudalac!
Mon Aug 28 08:37:29 CDT 2006

feudalac! wrote:
> I need a litle help with dragdrop...
>
>
> I can't find anything useful on google...
>
> I have a ComponentOne True Grid and Windows Forms Treeview
>
> i want to drag an item from the grid and into Microsoft Treeview...
>
> so far i have done this:
> grid.allowdrag = true
> tree.allowdrop = true
>
> private sub grid_mousemove (sender as object, e as drageventargs)
> handles grid.mousemove
> if e.button = left then
> grid.dodragdrop(grid,copy)
> end if
> end sub
>
> private sub tree_dragdrop (sender as objet, e as drageventargs) handles
> tree.dragdrop
> ... code that does everything i need
> end sub
>
> the problem is that event tree.dragdrop doesn't happen...
> only tree.dragenter
>
> i remember that in vb6 tere was something called 'dragmode' and it was
> allways set to 'automatic'
>
>
>
> please help
>
>
>
>
>
>
Problem solved....

--
You're not paid to think. A mindless worker is a happy worker. Shut up
and do your job!
- Tata Feudalac!

--------------------------------------------------------
http://www.fotozine.org/index.php?stranica=clan&uid=1352
http://www.thinkgeek.com/brain/gimme.cgi?wid=81d35dc8f
http://groups.google.com/group/fejkneraddangub
--------------------------------------------------------