When I launch a form as a dialog and click a combo box on the form and without selecting any items, I click anywhere else in the form, the form is closed automatically. What events are triggered by this that caused the form close? Is there any good way to look in it?
There really shouldn't be anything done in the UltraCombo by default that would cause the containing form to close. What events are you handling? Are you perhaps calling "this.Close()" instead of trying to close the dropdown on the combo?
-Matt
Forgot to mention that the UserControl is associated to an UntraTextEditor, which is also a dropdown box. So is it possible that the closeup was sent to this dropdown box, instead of the one on Form B?
If so, can I force the dropdown box of the UntraTextEditor to keep dropped down and cannot be closed up by any events? In that case, will the closeup message be sent correctly to Form B?
Not only the dropdown, but the whole form is closed.
Let me make it clearer.
I have a form (Form A), and a UserControl is loaded from Form A. Then another form (Form B) is loaded from the UserControl. When I click a combo box on Form B, a dropdown is shown as expected. Then without choosing any items in the dropdown, I click any other places in that form (not outside the form), the form (Form B) is closed and the UserControl is also closed. Form A stays. The more weird thing is that the FormClosing event of Form B is executed after the form is closed. None of the this.Close() statements in Form B is executed before the form close.
In the above steps, if I click any places outside the form after opening the dropdown, everything is fine.