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 Reply Children