Thanks Rafael!  I just setfocus to the column instead of the textbox and 
it works fine.

Thanks,

Jeff

Jeff Johnson
[email protected]
SanDC, Inc.
623-582-0323
Fax 623-869-0675



Rafael Copquin wrote:
> In the init event of the form (if it does not work put the code in the 
> activate event of the form):
> 
> thisform.pageframe1.page1.grid1.column1.setfocus
> 
> Note the setfocus goes in the column, not in the contained textbox.
> 
> Rafael Copquin
> 
> 
> 
> ----- Original Message ----- 
> From: "Jeff Johnson" <[email protected]>
> To: <[email protected]>
> Sent: Thursday, September 24, 2009 2:37 PM
> Subject: Can't Setfocus on Page 1
> 
> 
>> I have a five page pageframe.  Each page has a grid on it.  In the
>> activate of each page I set focus to the first textbox in the grid on
>> the page.  When the form opens, focus is on page 1 and the activate
>> fires.  I have the setfocus in the activate but it does not set focus on
>> the grid.  If I click on any other page it works fine and when I click
>> back on page 1 from another page it works.  It only doesn't work the
>> first time the pageframe gets focus.
>>
>> Any ideas on how to set focus on the grid when the form opens?
>>
>> -- 
>> Jeff
>>
>> Jeff Johnson
>> [email protected]
>> SanDC, Inc.
>> 623-582-0323
>> Fax 623-869-0675
>>
>>


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to