Read text from txt file
Hello! I'm reading a txt file, when the form is loaded the text appear in the textbox. My problem is that when the form loads, the text is selected, and i don't want that. How can i make the text not to be selected? thnks!
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


VulpesRank #55 · 29.2K reputationPosted Apr 3, 2013, 2:55 PM EDT
This selects nothing but leaves the caret at the end of the text.
Javeed M ShaikhRank #839 · 2.7K reputationPosted Apr 3, 2013, 12:52 PM EDT
I think the tabindex for this texbox is set to 0 and tab stop is set to true, you can either set the tab index of some other control to 0 or set the tab stop to false.
Jignesh TrivediRank #16 · 50.3K reputationPosted Apr 3, 2013, 8:02 PM EDT
I have tried in my test application to reproduced the issue which is face by you.
it working fine and not get selected whole text while I am click on textbox or make focus on textbox.
here I am making text box multi line.