Text Selection in textbox

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

Patrick De Ridder

I display text in a text box on form1, which in turn is placed form2.
The text comes on selected. The only way I can get rid of the
pre-selection is to give focus to the form2. However, the problem
continues, because as soon as I touch the vertical scroll bar, the
text get selected again. How to stop this from happening?
 
I display text in a text box ...
The text comes on selected ...

After ad nauseam trying alternatives,
textBox1.SelectionStart = 0;
switched off the selection.
(it didn't need length = 0)
There is no funny stuff un my application so I guess this is a bug.
 
Back
Top