private void dockPanel_DragEnter(object sender, DragEventArgs e)
{
//me added : 添加dockPanel拖拽功能dockPanel_DragEnter
// DataObject..::.GetDataPresent 方法 (Type)
// 确定是否具有指定格式的数据,或者数据是否可以转换为指定格式,此格式由 Type 对象指定。
e.Effect = DragDropEffects.All;
if (e.Data.GetDataPresent(DataFormats.FileDrop))
e.Effect = DragDropEffects.Copy;
base.OnDragEnter(e);
}
private void dockPanel_DragDrop(object sender, DragEventArgs e)
{
//me added : 添加dockPanel拖拽功能dockPanel_DragDrop
base.OnDragDrop(e);
m_taskList.textBox1.Text = e.Data.GetData("Text").ToString();
m_taskList.Show(dockPanel);
}