Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Init
Message
 
To
09/04/2001 12:00:22
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Re: Init
Miscellaneous
Thread ID:
00493571
Message ID:
00493765
Views:
11
Chuck, make sure that you have

Thisform.List1.ListIndex = 1

before you set focus to the listbox in the last line of Form.Init()

If ListIndex is not set, then the listbox gets focus, but visually you don't see it, as none of items is selected yet.

>I tried that before and didn't do it. Maybe it's something else that got the focus away afterwards?
>
>I will look into LISAG (are they in that order?).
>
>I will also attempt to use the debug for that...
>
>Thanks to all!
>
>Chuck
>
>>To meet your stated requirements you should do your setfocus at the end of the form's Init code.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform