codice:
textbox.SelLength = Len(textbox.Text)