On my form I have two ComboBoxes.
The first displays a list of countries.
The second one, if the country selected in the first ask for,
displays a list of states, provinces or republics, etc depending on
the country selected.
This second ComboBox appears or disappears driven by
At this point, the combination of the two ComboBoxes works
My problem is:
If the first ComboBox (countries) ask for a selection of the
administrative division, the user MUST select it in the second one.
This is mandatory for the success of the registration of the
In order to warn the user in case he/she didn't select the
administrative division, I have tried different if/else statements
based on .visible or ._visible = true or CB_TWO.selectedItem.label
or CB_TWO.selectedItem.data statements but no one works.
How can I proceed to solve this question?
Many thanks in advance for indicating the right way!
I think you are over-complicating this. If it were me, I
would have a boolean variable associated to each combobox listener.
Initially both those variables are false. Call the variables