Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox valid with Active X control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00299058
Message ID:
00299497
Vues:
20
>>>>>I have a textbox and I need to have the valid/lost focus methods run. I also have a DBI Active X control on my form used to change pages in my pageframe. My problem is that the valid/lost focus methods of my textboxes are not fired when I click on the Active X control. How can I force the valid/lost focus methods to fire. I tried putting an invisible commandbutton on top of the Active X control to manually make the calls to the Active X control but no controls can go on top of the Active X control even when I use "Bring to Front" Any ideas?
>>>>
>>>>Is there a click event for the control that you can use to fire the lostfocus of the active control?
>>>
>>>It does have that kind of method but how would I know what control (textbox) I just came from? There are about 150 controls on my form that all need to make sure their valids are executed if the user alters the control. The Active X object is used to change pages on the form. I like the look of it. This problem seems like it could be a big deal for ALL Active X controls if this is what happens. There must be a way to make sure the valid/lost focus is executed?
>>
>>If the ActiveX control never caused the lostfocus to happen, then that control should still be the Form.ActiveControl. This is conjecture, but a fairly educated guess...
>
>I will try this but this sure seems like a huge work around. Do all Active X controls have this problem?

No. Some do, some don't. I can't tell you what the key difference is.
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform