Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Howto Shift Focus Out Of A Grid
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00961010
Message ID:
00961034
Views:
7
>Hello Dragan,
>
>>If you're doing this .setfocus() within a .losfocus() of an object.
>
>The form has a method that is called just once, after the form is opened and becomes visible. This allows you to set various things up - here is the code :-
>
>
>THISFORM.oCntJobLU.grdListGrid.afterFormOpen()
>THISFORM.setNextControl(THISFORM.txtJobNum)
>
>
>So, as you can see, this is not occuring in a lostfocus. The first line sort of sets the grid up to how it should "look" just after its containing form has opened. The second line attempts to setfocus on the form control I require to have focus.
>
>Thank you!
>
>Angie.

Where are you calling these methods? I would put the call to the second method in Form's Activate. Also make sure you're not setting focus to the grid somewhere in the code.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform