Search results

  1. B

    how to get a string?

    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)...
Top Bottom