Dim i As Integer = Me.TextBox1.SelectionStart
Dim sSelected As String = ""
If Me.TextBox1.Text.Trim.Length = 0 Then
MessageBox.Show("No text")
Exit Sub
End If
If Me.TextBox1.Text.IndexOf(" ", i) > -1 Then
sSelected = Me.TextBox1.Text.Substring(i, Me.TextBox1.Text.IndexOf(" ", i) - i)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.