Good afternoon,
I am very brand new to the VB.net. I have questions regarding input mask.
In Microsoft Access, we can set an input ask for each field that we created. For example, the input mask for the date might be "_ _ /_ _ /_ _" . The user can input the date right away. The dashes and slashes do not move or disappear.
When I tried to work this one in the VB, I created a text field. But I could not locate anything in the property that I can default the mask. I did created a sub for this field. The field name is txtbDate, from the textbox.
*********************
Private Sub MDate
Dim mbDate as Date
Txtbdate.Text() = format(mbDate,"_ _ /_ _ /_ _")
End Sub
****************************
When I tried to input the date in there, the dashes and slashes disappeared.
How can I make the default "_ _ /_ _ /_ _", without having the dashes and slashes disappeared? User needs to type only the date month and year.
I realize that I might be wrong on several things. Your comments are welcome. I am new to this VB. Thanks.
I am very brand new to the VB.net. I have questions regarding input mask.
In Microsoft Access, we can set an input ask for each field that we created. For example, the input mask for the date might be "_ _ /_ _ /_ _" . The user can input the date right away. The dashes and slashes do not move or disappear.
When I tried to work this one in the VB, I created a text field. But I could not locate anything in the property that I can default the mask. I did created a sub for this field. The field name is txtbDate, from the textbox.
*********************
Private Sub MDate
Dim mbDate as Date
Txtbdate.Text() = format(mbDate,"_ _ /_ _ /_ _")
End Sub
****************************
When I tried to input the date in there, the dashes and slashes disappeared.
How can I make the default "_ _ /_ _ /_ _", without having the dashes and slashes disappeared? User needs to type only the date month and year.
I realize that I might be wrong on several things. Your comments are welcome. I am new to this VB. Thanks.