Hi,
When a TextBox or NummericUpDown is entered, I want the content to be selected, namely, highlighted. I have the following code in my subclass of a TextBox:
protected override void OnEnter(EventArgs e)
{
this.SelectAll();
base.OnEnter (e);
}
It is not working. I tried the OnGotFocus event too, and failed too. What's wrong?
Also, the NumericUpDown doesn't have a SelectAll() method, what do I do?
Chen
Chen Nan