Hi All and thanks again:
The solution for the problem is the next:
The TextBox that are in the form, has the event gotfocus() like the last event (really is the message event()). Then if you type in the gotfocus()"this.SelStart = 5" this run perfect.
But, the TextBox that are inside the grid, hasn't the event gotfocus() like the last event. After the event gotfocus() of the textBox, occurs the event AfterRowColChange() of the grid. The Grid.AfterRowColChange event, it must do something and change the textbox.selstart property.
To resolve this, I type the code in the Grid.AfteRowColChange()
{LPARAMETERS nÍndiceCol
IF nÍndiceCol = 3 &&the column3
this.column3.text1.selstart = 6
ENDIF
}
This run o.k.
Best regards, and thanks for all.
Fernando Molina
fmolina@sintonia.es