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
260
Maximize/Minimize Undocked Window
posted

I have a tab control which I docked in my windows form via the ultraDockManager.  When I drag the window to undock it from the main form, is there a way I can maximize that undocked window to fill my entire second screen or is this simply not a feature of the dock manager?  I do have maximize and minimize buttons visible in the upper right corner of the undocked window but I think those are for maximizing and minimizing within the panel itself, not to maximize the entire docked window.  Any help would be very much appreciated.

Thanks!

Parents
No Data
Reply
  • 1640
    Suggested Answer
    Offline posted

    simply do this:

    ultraDockManager.PaneFromControl(YourControl).Visible=false;

    Form popUpForm=new Form();

    YourControl.Parent=popUpForm;

    YourControl.Dock=Dock.Fill;

    popUpForm.WindowState=WindowState.Maximized;

    popUpForm.Show();

Children
No Data