I have a multi-line text box and i wish to know what char is highlighted if the user just highlights one character. Could someone please give me some pointers on how to do this?
Public Function GetFirstChar(textBox as TextBox) as Char
If textBox.SelectionLength = 1 then
GetfirstChar = textBox.SelectedText.Chars(0)
End If
End Function
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.