Selected text oesn't look selected when form not active

  • Thread starter Thread starter trebor
  • Start date Start date
T

trebor

If you select text in a form's textbox and then open a second form (for
whatever reason), the selected text no longer looks selected; it's not
hilited. When you close the second form and return to the first, the
selected text is once again hilited.

But selected text in other Windows applications still looks selected
even when the forum that holds the text loses focus. Any idea how to do
this in VB?
 
The Textbox control, like many others, has a HideSelection property which
defaults to True. When it's true, the selection cue isn't presented. Change
that property to False and you'll get the behavior you want.

Tom Dacon
Dacon Software Consulting
 
Tom Dacon said:
The Textbox control, like many others, has a HideSelection property which
defaults to True. When it's true, the selection cue isn't presented. Change
that property to False and you'll get the behavior you want.

Great answer! Thank you very much.
 
Back
Top