Drag and Drop design issues

Hi,

I have the following problem, which I maybe think is an design 'error' from Microsoft...

I have a ListBox and a TreeView, where you can move an item from the ListBox to the TreeView, this is a simple task. But removing the item from the ListBox after having moved it to the TreeView, is not so elegant... There are different ways of doing this, but all of them are implemented in the event-handling of the TreeView, so we make a reference to the ListBox (of some sort) in the event-handling methods of the TreeView!! I don't like this design.... the TreeView should not have to know about the ListBox at all, it should fire some sort of event to the drag-source (the item from the ListBox).... 

I hope I'm wrong about my assumption ..... Can anybody confim of clarify this 


Answer this question

Drag and Drop design issues

  • Ashley Davis

    After having looked at VB6, I can tell exactly what is missing. In VB6 you have a dragComplete method, why have Microsoft removed this from .NET 

    /Thomas

  • Drag and Drop design issues