G
Guest
Hi;
I have this case where when I click on a line in my TreeView, it selects it
for a second, and then moves the selection back to the previous selection.
Usually I have to click 3 times to get it to stick - then it's fine from then
on.
The tree is not set to accept drag/drop. HideSelection=false, otherwaise all
is standard.
This is the only event I have for the control - and it is the only control
in the form:
private void Tree_MouseDown(object sender,
System.Windows.Forms.MouseEventArgs e)
{
TreeNode node = treeDB.GetNodeAt(e.X, e.Y);
if (node == null)
return;
RootNode root = node.Tag as RootNode;
if (root == null)
return;
DoDragDrop(new DragDropData(app, root), DragDropEffects.Copy);
}
Any ideas?
I have this case where when I click on a line in my TreeView, it selects it
for a second, and then moves the selection back to the previous selection.
Usually I have to click 3 times to get it to stick - then it's fine from then
on.
The tree is not set to accept drag/drop. HideSelection=false, otherwaise all
is standard.
This is the only event I have for the control - and it is the only control
in the form:
private void Tree_MouseDown(object sender,
System.Windows.Forms.MouseEventArgs e)
{
TreeNode node = treeDB.GetNodeAt(e.X, e.Y);
if (node == null)
return;
RootNode root = node.Tag as RootNode;
if (root == null)
return;
DoDragDrop(new DragDropData(app, root), DragDropEffects.Copy);
}
Any ideas?