"Locking" characters when the user edits a treeview node's text

kriswinner

Member
Joined
Apr 23, 2009
Messages
23
Programming Experience
10+
I have an application where I'm allowing the user to edit the text of a treeview node. Is it possible to "lock" portions of the node's text to keep it from being edited?

For instance, if the text is "BK01" originally, can I keep the user from editing the "BK" prefix?

I currently validate the user's input when they are finished editing, but I'd like to keep them from entering incorrect information to begin with.


Any suggestions would be appreciated.

KW
 
Since this post has had several looks and no solution....

One thought that comes to mind is the following:
Instead of allowing the user to edit the actual tree view node's text, display two textboxes on top of the treeview node's text.
The first would have the "protected" text in it ("BK" from the above example) and the second which would be located directly to its right would have the characters that can be edited.

Any thoughts to it's feasibility?


Thanks.

KW
 
Back
Top