textBox Focus

  • Thread starter Thread starter Hrcko
  • Start date Start date
H

Hrcko

I wrote some words in textBox.
On the next Focus I would like to get to the end of the last entered word.
How ?

Hrcko
 
private void textBox_GotFocus(object sender, EventArgs e)
{
textBox.Select(textBox.TextLength, 0);
}
 
Back
Top