Questions on TextBox control
-
Hi gurus, I'd like to know how to do the two following operations on TextBox controls: - Moving the cursor to the end of the text, so the new added lines are always visible without moving the scroll bar. - Setting the focus on a TextBox. the
Focus()
method does not work :( Thanks for the help. fred. There is no spoon. -
Hi gurus, I'd like to know how to do the two following operations on TextBox controls: - Moving the cursor to the end of the text, so the new added lines are always visible without moving the scroll bar. - Setting the focus on a TextBox. the
Focus()
method does not work :( Thanks for the help. fred. There is no spoon.answers: 1. .Select(); SendKeys.Send("{END}"); 2. .Select(); Sheel Gohe
-
answers: 1. .Select(); SendKeys.Send("{END}"); 2. .Select(); Sheel Gohe
- I have found another alternative by using the
SelectionStart
set toText.Length
andScrollToCaret
method. 2) TheSelect()
method does not set the caret to the wanted control. Actually theFocus()
method was right, the wrong thing was that I was modifying the interface through a secondary thread. Thanks for the help. There is no spoon. -- modified at 11:05 Wednesday 18th January, 2006
- I have found another alternative by using the