private MultiPaneControlDesigner GetParentControlDesigner()
        {
            MultiPaneControlDesigner aDesigner = null;

            if (Control != null)
            {
                if (Control.Parent != null)
                {
                    IDesignerHost aSrv = (IDesignerHost)GetService(typeof(IDesignerHost));
                    if (aSrv != null)
                    {
                        aDesigner = (MultiPaneControlDesigner)aSrv.GetDesigner(Control.Parent);
                    }
                }
            }

            return(aDesigner);
        }
 public frmSwitchPages(MultiPaneControlDesigner theDesigner)
 {
     myDesigner = theDesigner;
     InitializeComponent();
 }
 public frmSwitchPages(MultiPaneControlDesigner theDesigner)
 {
     myDesigner = theDesigner;
     InitializeComponent();
 }