Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
First control on the page doesn't want to take focus
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01525103
Message ID:
01525140
Vues:
52
>>>Is combo visible?
>>>If so, what happens if you make it invisible?
>>>
>>>BTW if the textbox is over the combo, and textbox is transparent, then Combo will have focus :-)
>>>
>>>Try this, just start typing :-)
>>
>>Textbox is on top of the combo (combo is a bit down below). I made combo invisible and yes, the textbox does have focus now. I'll try adding setting combo.visible to true after focus.
>
>Did this behavior change if you made combo visible and Textbox opaque?

Textbox is already opaque. Anyway, I was updating my reply:

UPDATE. Don't know why, but having combo invisible in design-time and setting it visible in Page.Activate right after textbox.SetFocus solved the problem. Thanks a lot, I was going in circles with this little problem.

I leave it this way - it's working!

I'm also thinking that could it be that they were too close to each other?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform