Drag Drop (C1 and windows forms)

  • Thread starter Thread starter feudalac!
  • Start date Start date
F

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
 
feudalac! said:
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....
 
Back
Top