restricting edit field in tree control to set number of characters
Posted on 2007-10-04
i have a tree control, which displays some visual information. One of the fields ia a character shotcut associated with the information this is displayed in the format
for example, when the user edits this text, i can strip away the KEY: no problem so that all that remains is the char. the problem is th user can still type as many charatcers as they want and i want to restict this.
i would like to restrict the edit field to be one character. is this possible? also all of these keys will be captial so if a user enters m i would like to convert this to M. how would i do this?
Many thanks for the help