Article ID: 110394
Article Last Modified on 10/29/2003
Sub Form_Load ()
text1.Text = "This sentence is highlighted whenever given the focus."
text2.Text = "This is not highlighted."
End Sub
Sub Text1_GotFocus ()
text1.SelStart = 0 ' Start selection at beginning.
text1.SelLength = Len(text1.Text) ' Length of text in Text1.
End Sub
[form.]{combobox|textbox}.SelLength[ = length ]
[form.]{combobox|textbox}.SelStart[ = index ]
[form.]{combobox|textbox}.SelText[ = stringexpression ]
text1.SelStart = Len(text1.Text) text1.SelLength = 1 ' Length of selection
Additional query words: 3.00
Keywords: KB110394