Hello,

When my form openes I want the textbox 'txtNumber' to highlight the 1 that is automatically put in there.

I use the following code but it doesnt work.
What am I doing wrong?

VB Code:
  1. Me.txtNumber.Text = 1
  2. Me.txtNumber.Focus()
  3. Me.txtNumber.Select(0, Len(txtNumber.Text))