Masked textbox have a bug ?

  • Thread starter Thread starter Fred
  • Start date Start date
F

Fred

Hello,
i want to select all contains in a maskedtextbox with a hour mask, when i
enter in the control.
i used the function:
MyMaskedTextBox.selectall
but nothing happened
is the right way or maskedtextbox have a bug ?
thank you.

ps: excuse for the english, i am french
 
Fred,

I have the same result as you, I have reported it.

MaskedTextBox1.Mask = "00:00"
MaskedTextBox1.Text = Now.TimeOfDay.ToString
MaskedTextBox1.SelectionStart = 0
MaskedTextBox1.SelectionLength = 4
MaskedTextBox1.SelectAll()

Cor
 
Back
Top