Information générale
Catégorie:
Contrôles ActiveX en VFP
Titre:
Two controls got focus
Hello, all.
I'm very sorry my English is not good.
I have a Microsoft Date and Time Picker Control and a textbox control on my form. I create a new property for Textbox "EnabledLost" in Init event of Textbox. In Textbox's Valid event, i make a data validation and set this property to .F. (if validation fail) to prevent lost focus. If i press Tab from textbox, no problem. But if when i enter invalid data in the textbox and i click the DateTime control, the textbox and DateTime control all have got focus and then i can't do anything.
Thanks in advance.
Trung B.C
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement