AnsweredAssumed Answered

Order of events fired when going from TextBox to ComboBox

Question asked by Randy Wong on Oct 2, 2019
Latest reply on Oct 2, 2019 by Randy Wong

Hi All,

I am working on a task pane in VBA.net and noticed during debugging that when a user clicks in a textbox control, types text, and then clicks into a ComboBox control, the TextBox control's leave, validating, and validated events do not fire until the user clicks into a different textbox control.  If the user goes from a textbox to a combobox and back to the same textbox, these events still won't fire until a different control is entered.

 

So if I have TextBox1, TextBox2, and ComboBox:

1) If user clicks into TextBox1 then ComboBox:  TextBox1's leave events do not fire

2)  If user clicks into TextBox1 then ComboBox then TextBox1:  Still no leave events firing

3)  If user clicks into TextBox1 then ComboBox then TextBox2:  TextBox1's leave events do fire

4)  If user clicks into TextBox1 then ComboBox then TextBox1 then TextBox2:  TextBox1's leave events fire at TextBox2

 

Could someone share some insight into why the textbox leave, validating, and validated events are put on hold for a combobox?

Sorry if this is a newbie question - having a hard time finding help with Google on this specific thing.

Outcomes