EDN Admin
Well-known member
Hi all,
After experimenting around with DevExpress controls and adding them to my form, Custom mask do not seem to work on the MaskedTextBox. If I place a custom mask and debug, I get a null reference exception.
It seems to be the maskedTextBoxs mask property that is doing this. I have tried setting the mask through design and by code. However, neither way works.
My question is, is it possible to use a TextBox as a maskedTextbox? To be able to format it? I need the user to enter in hours, minutes, seconds like hh:mm:ss or 00:00:00.
Heres the error I get:
"NullReferenceException was unhandled. Object reference not set to an instance of an object."
Thanks,
- Jordan
<
<span style="color:green If you find an answer helpful, click the Helpful button. If you find an answer to your question, mark it as the answer.<br/>
metasdevelopment.com www.metasdevelopment.com
Helpful Links:<br/>
<span style="font-style:normal http://msdn.microsoft.com/en-us/library/aa188202(office.10).aspx Visual Basic for Applications (VBA) Information
<span style="font-style:normal http://social.msdn.microsoft.com/Forums/en-US/isvvba/threads Visual Basic for Applications (VBA) MSDN Forum
<span style="font-style:normal http://www.developerfusion.com/tools/convert/csharp-to-vb/ Convert C# to VB.Net
<br/>
http://www.metasdevelopment.com" target="_blank <img src="http://metasdevelopment.files.wordpress.com/2011/08/mcc11_logo_horizontal_full-color.jpg" alt="
<br/>
View the full article
After experimenting around with DevExpress controls and adding them to my form, Custom mask do not seem to work on the MaskedTextBox. If I place a custom mask and debug, I get a null reference exception.
It seems to be the maskedTextBoxs mask property that is doing this. I have tried setting the mask through design and by code. However, neither way works.
My question is, is it possible to use a TextBox as a maskedTextbox? To be able to format it? I need the user to enter in hours, minutes, seconds like hh:mm:ss or 00:00:00.
Heres the error I get:
"NullReferenceException was unhandled. Object reference not set to an instance of an object."
Thanks,
- Jordan
<
<span style="color:green If you find an answer helpful, click the Helpful button. If you find an answer to your question, mark it as the answer.<br/>
metasdevelopment.com www.metasdevelopment.com
Helpful Links:<br/>
<span style="font-style:normal http://msdn.microsoft.com/en-us/library/aa188202(office.10).aspx Visual Basic for Applications (VBA) Information
<span style="font-style:normal http://social.msdn.microsoft.com/Forums/en-US/isvvba/threads Visual Basic for Applications (VBA) MSDN Forum
<span style="font-style:normal http://www.developerfusion.com/tools/convert/csharp-to-vb/ Convert C# to VB.Net
<br/>
http://www.metasdevelopment.com" target="_blank <img src="http://metasdevelopment.files.wordpress.com/2011/08/mcc11_logo_horizontal_full-color.jpg" alt="
<br/>
View the full article