Print Page | Close Window

Drag Drop

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Task Panel
Forum Description: Topics Related to Codejock Task Panel
URL: http://forum.codejock.com/forum_posts.asp?TID=12852
Printed Date: 27 April 2024 at 2:06pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Drag Drop
Posted By: Brian42
Subject: Drag Drop
Date 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

Brian


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


{


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



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


return;


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


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




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


}




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net