General information
Category:
Coding, syntax & commands
>>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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only