Highlight current word and line in a TextBox control
Here’s a simple way to highlight the current word in a TextBox control (i.e. the word where the caret is): Text1.SetFocusSendKeys “^{LEFT}+^{RIGHT}” Similarly, you can highlight the current line in