Using VB.Net 2010 (Pro)
I hav a form which contains several standard text boxes and a few MaskedTextBox controls I use for date input (ie set mask format to short date).
I want to know when the form becomes "dirty", so I've put code to check the values in the text boxes against the original data. This has worked fine for standard text boxes, which I put code in the "TextChanged" event to test for "dirty". For that standard textboxes, I've combined the "TextChanged" handler into one single routine.
However, when I try the same thing for a MaskedTextBox, when starting the application it immediately throws an error that reads:
Value cannot be null
All I have done to get this error is add the "TextChanged" event, I have not yet even put code in the event.
I have tried both having a seperate handler, as well as combining it with the standard TextBox handlers. Both fail with the same error.
What's going on and, more importantly, how go I get it to work?