caret position in a being edited Node
-
How do I set the Position of the caret of a Node in a Treeview that's being edited? There isn't a Select() function available like it is with textboxes
There is nothing in the .NET BCL that will do this. There is no method to call anywhere in the TreeView or TreeViewNode, it's just not supported. I don't even know if the underlying TreeView control that the TreeView class wraps supports it. You might be able to "fudge it" by getting the handle to the control that holds the text being edited and using the Win32 API SendMessage function call to send it the appropriate messages to position the caret. Don't ask me for details, I can't give them to you. This is all just a theory... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
There is nothing in the .NET BCL that will do this. There is no method to call anywhere in the TreeView or TreeViewNode, it's just not supported. I don't even know if the underlying TreeView control that the TreeView class wraps supports it. You might be able to "fudge it" by getting the handle to the control that holds the text being edited and using the Win32 API SendMessage function call to send it the appropriate messages to position the caret. Don't ask me for details, I can't give them to you. This is all just a theory... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome