Thank you Andreas. With your code happens the same. When the text is changed in my edit box (with spin control), all text is selected.