Hi i am new to visual basic, and i would like to select the first 85 characters in the text box out of about 150. I would like to highlight those 85 characters too. Please help thanks.VB 2008: How do i select certain characters in a text box. Eg Select the first 20 characters out of about 100.
Dim Ch() As Char = Me.TextBox1.Text.ToCharArray
For Highlighting you will have to change your textbox to a richtextboxVB 2008: How do i select certain characters in a text box. Eg Select the first 20 characters out of about 100.
Right(textbox.text, 1, 20)
No comments:
Post a Comment