how to avoid atomatic selection of text in textbox?

S

Stephan Elsner

I want to output text in a multiline scrollable read only textbox, but
the text is always selected which look strange and is hard to read.

How can I deselect the text programatically?
 
H

Herfried K. Wagner [MVP]

Stephan Elsner said:
I want to output text in a multiline scrollable read only textbox, but
the text is always selected which look strange and is hard to read.

How can I deselect the text programatically?

Take a look at the control's parameterized 'Select' method and its
'SelectionStart' and 'SelectionLength' properties.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top