>>>I am having trouble forcing setfocus onto the first cell in my grid programatically. I tried the ActiveateCell method of the grid, and the ...Text1.Setfocus() method but the only way I can get the cell to be selected is manually with the mouse :(
>>>
>>>Thanks in advance
>>
>>Try setting focus to the grid object, then doing you're ActivateCell.
>
>Thanks Fred. I had to.
>
>ThisForm.Pageframecustom1.ActivePage = 1
>ThisForm.Pageframecustom1.Page1.SetFocus()
>ThisForm.Pageframecustom1.Page1.Gridcustom1.Column1.Text1.SetFocus()
>
>in the form.init and then it worked. Set focus to the page was the key.
>
>Sorry to waste your time.
>
>Terry
I wouldn't recommend putting ANY SetFocus in the form Init. It causes a world of difficult to trace problems on some computers (timing?). Try moving it to the form Activate or GotFocus methods instead.
Load
Init
Show
Activate
GotFocus
LISAG