Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1075
Problem using combo box in popup form while using dropped down panel
posted

First of all, this is probably the wrong forum, but I can't find a suitable one for this problem.

I have a button which shows a drop down panel using DropDownManager.DropDown(). On that panel there is another button which opens a form. The problem is, when I open that form the drop down panel closes. I want this panel to stay opened while the form is shown. I have fixed this issue by using DropDownManager.SuspendAutoCloseUp. But this creates a new problem. The popup form contains an UltraComboEditor. This combo won't close by clicking anywhere in the form. Furthermore, when moving the popup form while the combo box is openend, the dropped down list stays in the same place on the screen.

I added a small sample project demonstrating the problem. Both buttons do the same, except one calls SuspendAutoCloseUp before opening the forum. I hope someone can help me achieve the following:

- A dropped down panel should stay open when a popup form is opened
- Combo boxes on this form should retain default functionality (ie clicking outside the combo box will close it up)

I'm using version 10.3.20103.2145. Thanks in advance.

PopupProblem.zip
Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    The problem is the Owner you are specifying when you show the dialog. You are calling:

    frm.ShowDialog(this);

    So the dialog is shown as a child of the main form. This means that the popup window no longer has focus and the active window is owned by the main form and not the popup. If you change it to be a child of the dropdown panel, it works fine:

    frm.ShowDialog(this.pnlDropDown);

Children