Hi! i'm trying to select all text in a mask edit box when focus so that the user can change the default text (today's date). The select doesn't work and selectall is not a member of the maskbox. Does anyone know how to solve it? Thanks.
MaskedTextBox got .Select and .SelectAll methods inherited from TextBoxBase, so this code works fine:The MaskEdBox control in Visual Basic 6.0 is replaced by the Windows Forms MaskedTextBox control in Visual Basic 2005.
Private Sub MaskedTextBox1_Enter(ByVal sender As Object, ByVal e As System.EventArgs) _
Handles MaskedTextBox1.Enter
MaskedTextBox1.SelectAll()
End Sub