Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Task Panel
  New Posts New Posts RSS Feed - Drag Drop
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Drag Drop

 Post Reply Post Reply
Brian42 View Drop Down

Joined: 03 December 2008
Location: United States
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Brian42 Quote  Post ReplyReply Direct Link To This Post Topic: Drag Drop
    Posted: 03 December 2008 at 5:41pm
I'm using the taskpanel for a toolbox for a designer.   Which works group dropping the selected Item on the Designer.  However, I'm trying to figure out how to implement the drag/drop within the control to allow rearranging of the toolbox items.  I am trying to get the data out of OLEDragDrop function; however I can't figure out how to get the data properly.

Any help would be great.


Thanks in advance


private void wndTaskPanel_BeginDrag(object sender, AxXtremeTaskPanel._DTaskPanelEvents_BeginDragEvent e)


SelfHostToolboxItem selectedItem = (SelfHostToolboxItem)e.item.Tag;

if (selectedItem == null || selectedItem.ComponentClass == null)


ToolboxItem toolboxItem = ToolboxPane.GetToolboxItem(selectedItem.ComponentClass);

IDataObject dataObject = this.SerializeToolboxItem(toolboxItem) as IDataObject;

DragDropEffects effects = DoDragDrop(dataObject, DragDropEffects.Copy | DragDropEffects.Move | DragDropEffects.None);


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.