I posted this in the
VB forum but haven't gotten an answer that works yet. I hope I fine a
VB.Net person here.
I have an unbound masked edit control with a mask for a social security number. I had code in the click event of a button to clear the SSN but it would only work the first time the button was clicked.
This is the line of code I used:
Me.MaskedEdit1.Text = " / / " (3 spaces, 2 spaces, 4 spaces)
Also tried:
Me.MaskedEdit1.Text = " / / " (same spaces)
Me.MaskedEdit1.Mask = "###/##/####"
And:
Me.MaskedEdit1.Mask = "###/##/####"
Me.MaskedEdit1.Text = " / / " (same spaces)
And:
Me.MaskedEdit1.Text = ""
Me.MaskedEdit1.Mask = "###/##/####"
Any ideas?
Thanks