Posted 19 years ago by JoeP - Software Design Engineer, Microsoft
Avatar
Hi, I'm trying to drag a bit of text from a treeview to the SE and can't seem to make it work. I see in the sample that it works, but alas, can't seem to duplicate it.

I see there are some references to the CustomDataObjectText event, but can't seem to find that in the sample app. What I do find is the PasteDragDrop event.

But that doesn't seem to do much. The DragDrop/DragEnter/DragOver events are being fired and I have set the AllowDrop property to true.

Thanks
jp

Comments (1)

Posted 19 years ago by JoeP - Software Design Engineer, Microsoft
Avatar
Nevermind, got it to work.

Just have to set the data format to text....

DataFormats.Format sqlObject = DataFormats.GetFormat("Text");
DataObject myDataObject = new DataObject(sqlObject.Name, dragNode.Text);
tvwAvailableActivitySQL.DoDragDrop(myDataObject, DragDropEffects.Copy);
The latest build of this product (v24.1.0) was released 5 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.