>Hi All:
>
>In a Form, I have a TextBox. In the 90% of the times. The user only must to change the 2 last digits of the TextBox. For give comfort, I type the next code.
>
>Form.TextBox.gotfocus() { this.SelStart = 6}. Then the user don't have to press 6 times the RightArrow Key.
>
>This run o.k., but if you do this in a textbox that are inside a grid doesn't run.
>
>Why? In what method I have to type the code to run in Form.Grid.Column1.TextBox?
>
The right way to do this is to subclass the textbox class, add the code to the GotFocus method of the subclass, and then programmatically add the subclassed textbox to the column. You can't write into the method code of the base class.