Information générale
Catégorie:
Codage, syntaxe et commandes
>>I have two textboxes and when I use the key tab to go from on to the other textbox four events will occur:
>>
>>Textbox1.Valid
>>Textbox1.Lostfocus
>>Textbox2.When
>>Textbox.2.GotFocus
>>
>>But if I do the same with mouse the events will occur like this:
>>
>>Textbox1.Valid
>>Textbox2.When
>>Textbox1.Lostfocus
>>Textbox.2.GotFocus
>>
>>Why the events occur not in the same order when I select a textbox with a mouse click or the tab key.
>>How I can change the order of these events?
>
>I'm aware of this, it's just the way they work when using mouse click...the easiest way to avoid problems is to stick with placing your code in Gotfocus & Lostfocus only, or at least avoid using When...
esp. considering (it seems) When is there for backward compatability only
it is not a stdard event and also in most cases Keypress event etc. are more suited for the job
Arnon
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