Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>Try this: Place 1 textbox on the form with valid code: Messagebox('Something') Also place a button on the form with click code : Messagebox("Save y/n",32+4) The save y/n messagebox will never appear when the textbox has focus. This is the problem: I want the click event to fire.
>
>KR, Wim.
I don't think it will EVER work the way you want it to... Are you saying you want the Buttons Click to fire, but not the text boxs lostfocus? Not gonna happen.
Why don't you move the validation code to the valid event. This is only fired if the value of the textbox was changed.
What you are seeing makes sense... remember a msgbox is modal... here is what you are getting..
press button...
since textbox has focus...
textbox::losefocus <<-- fires... displays modal message box
once message box is clear the button click event code will fire.
BOb
Précédent
Suivant
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