treeview label edit problem

  • Thread starter Thread starter Derrick
  • Start date Start date
D

Derrick

Hi

I am trying to edit the lables of nodes in a treeview control in my VB.net
app. At first, I thought I couldn't edit regardless of what the labelEdit
property was set to. Finally, after nearly throwing my keyboard through my
office window, I found that if you clicked on a node, waited between .5 and
1 seconds (any more or any less, and it won't work), then click again within
..5 and 1 seconds (any more or any less, and it won't work), it would allow
me to edit.

I assume this is not the way it is supposed to work... And with that
assumption, does anyone have any ideas of what could be the cause?

Thanks

Derrick
 
Hi Derrick,

I'm not sure if it is a correct behavior, I'd like to confirm the steps you
taken to enter the edit mode. The normal steps are :
1. left click once on a node to select it
2. left click once on the selected node to enter edit mode.

One thing should notice is the interval between the two clicks should be
longer than the double click settings in your Control Panel->Mouse->"double
click speed". Since the treeview needs handle both the double click
situation and the two signal click situation, if the double click speed is
slow you need wait more time before clicking for the second time to let
treeview make out it's two signal clicks, not a double-click. You may try
making the double click speed a bit faster to get shorter interval between
two signal clicks.

Does it help to resolve your problem?
Please feel free to reply this thread, if you still have problem on this
issue.

Best regards,

Ying-Shen Yu [MSFT]
Microsoft community Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, please remove the word "online"
before sending mail.
 
Thanks

I toyed with my double click settings, and was able to confirm that that
speed was too slow and causing the problem.

Thanks for the help

Derrick
 
I'm having a problem with this task also. I have
treenodes with .labeledit and .hottracking enabled.

Even though I'm waiting way more than the doubleclick
threshhold between clicks, it still requires four clicks
to force the node into the edit mode.

I am using the mouse_down event to enable a drag_drop
operation. By commenting out the entire mouse_down event
block, the labeledit feature works correctly.

Is there a simple way of dealing with this issue and
restoring the correct behaviour will leaving the
drag_drop operation available? I'm working in VB.net.


Thanks,

Jason
 
Back
Top