Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Design question
Message
From
01/02/1999 15:57:14
 
 
To
01/02/1999 15:01:44
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Miscellaneous
Thread ID:
00182676
Message ID:
00182707
Views:
11
There are a number of different ways to do this, Greg, but for me the simplest is to add a new property to the Form (call it FocusControl). Put the full object pathname of the control there, i.e. "THISFORM.txtFirstName"

In Add.Click()

cGoControl=THISFORM.FocusControl
&cGoControl..SetFocus()


>I'm using the MS VFP 6.0 framework. I modified the navigation toolbar to include an add record button and a delete record button. How do I set the focus to the first control on the form when the add button is clicked. No matter which form is active?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform