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
530
PopupControlContainer Not closing
posted

I am using a PopupControlContainer to display a usercontrol.

The control fires an event and here is the handler code:

private void ctlColorSchedule_OnColorSelected(object sender, EventArgs e) {

              UltraPopupControlContainer tool = UltraPopupControlContainer.FromControl(ctlColorSchedule);

              if (tool != null)

                  tool.Close();

             else

                  Debug.WriteLine("Tool is null");

 

And the Popup is not closing, I get the Tool is null message.  The user control disapears, but the tool does not close.  If I click on the tool, then it closes, but I am not getting the tool reference.

Is there something I am not doing in my usercontrol? 

Thanks!

Bob

Parents
  • 530
    Verified Answer
    posted

    I figured it out!  I was using the wrong class.  I was using UltraPopupControlContainer and I should have been using PopupControlContainerTool.

    Bob

Reply Children