Highlight all text in a text box - Vb.net

Highlight all text

Snippet Code


  
Rate this page :
  [ 0 votes]

Place a text box named text1 and run the code.

Private Sub Text1_GotFocus() Text1.SelStart = 0 Text1.SelLength = Len(Text1) End Sub

Tags


Ask Questions

Ask Question