On a MaskedTextbox druing the validating-event, I noticed that .Text
contained the previous value, not what I just eneterd in the field.
As the CancelEventArgs only has the .Cancel, I looked (=watch) to the
sender object and found the .WindowText to contain the actual value.
I was even able to alter the value of sender.WindowText, but I found
no way to access it from code:
- not by sender.WindowText
- not by DirectCast(sender, MaskedTextbox).WindowText

As the cancel only is possible here, why isn't there any access to the
actual value in the field whereupon one can decide if the value is OK.

Or am I overlooking something?

Regards

Reply via email to