Selected Text In Text Box

  • Thread starter Thread starter Patrick De Ridder
  • Start date Start date
P

Patrick De Ridder

My textBox comes on with all the text selected. Setting "hide
selection" to "true" or using SelectedText or SelectedTextLength
will not stop the highlighting. How do I get rid of the text pre-
selection when the display comes on?
 
Are you talking about the standard TextBox Control from .NET? Or a 3rd party
control.
Because the .NET TextBox does not Select all text automatically.
 
Are you talking about the standard TextBox Control from .NET? Or a 3rd party
control.
Because the .NET TextBox does not Select all text automatically.

I am talking about a NET textBox that I am using in multi-line mode.
All the text comes on selected and I want to get rid of the selection.
 
The text box is on a form, the form, in turn, is on a panel. I have
solved the problem by giving focus to the panel after displaying the
text. Thanks anyway.
 
Back
Top