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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top