Home All Groups Group Topic Archive Search About

Drag Drop (C1 and windows forms)

Author
28 Aug 2006 1:09 PM
feudalac!
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
--------------------------------------------------------

Author
28 Aug 2006 1:37 PM
feudalac!
feudalac! wrote:
Show quote
> 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
--------------------------------------------------------

AddThis Social Bookmark Button