Maskedtextbox and the Null
Ok I found one page here that talks about it but I am at wits end. For what I am doing I pretty much need 5 maskedtextboxes showing 24-hour time. Using VB2008.
If a time is entered into the box it cannot be removed. If the user removes the time from the box they will be stuck with focus on that maskedtextbox until they put in another time.
The SQL server is set to allow null and the dataset parameters also show nulls allowed. Any ideas on a way to allow an empty maskedtextbox to be returned to the server.
Re: Maskedtextbox and the Null
Don't use a MaskedTextBox for dates or times. Use a DateTimePicker. Set the Format to Custom and the CustomFormat to "HH:mm". You should also set ShowUpDown to True.