theUN4GVEN
Programmer
I have code on a few of my forms that adds the date to the text in the textBox control that has the focus when a specific key combination is pressed. The problem I have is when a textBox that is locked has the focus. When the key combination is pressed a run-time error occurs saying the property is read-only and can not be set.
The code determines which control has the focus and determines whether or not it is a textBox but I don't know how to determine if the textBox is locked. Any help would greatly appreciated.
Thanks,
Tom
The code determines which control has the focus and determines whether or not it is a textBox but I don't know how to determine if the textBox is locked. Any help would greatly appreciated.
Thanks,
Tom