I have a multiline textbox. Selecting text in it with mouse causes the selected text to go blue, but selecting it with code like this

Text10.SelStart = under
Text10.SelLength = over - under
Clipboard.Clear
Clipboard.SetText Text10.SelText

while it goes to clipboard fine, doesn't make it go blue. I'd like it to go blue when selected in code. Any thoughts?

Thanks