07-05-2007 05:16 AM
07-05-2007 07:50 AM
Just use two controls. One would be disabled (or an indicator) and the other would be the one the users type in. If you want it to make it look like a single controls you can make one transparent and overlay it, but I would advise against that, because it would be highly dependant on font size.
Another option is to have a single control and use a Key Down? event. If the beginning of the string does not match your set string, discard the event. Note that you will need to set the string to update while typing for this to work.
07-05-2007 08:09 PM
07-06-2007 02:12 AM
I couldn't look at your code (7.0 here), but here is an example of the second option, which is actually slightly more complicated than I originally thought, because the event does not change the string until you accept it. Instead, I tested for the position of the cursor. This does not actually test the string, only the length, but it should probably be OK.
In any case, this interface sounds weird to me. Can you show a mockup of how you actually want it to look?
07-06-2007 02:13 AM
07-06-2007 09:40 AM