ribbonbar with mdi child maximized

3 posts, 1 answers
  1. Jack
    Jack avatar
    9 posts
    Member since:
    Feb 2009

    Posted 01 Apr 2009 Link to this post

    I wanted my mdi child to be maximize at the start of a button click.
    As when the child is set as maximized, the buttons of minimise, maximise and close at the top right that supposed to be mount to the ribbonbar doesnt appear.
    i will need to maximise my parent form, then those buttons appear.

    below is the button click method.

            private void btnUser_Click(object sender, EventArgs e)
                Form1 newMDIChild = new Form1();
                // Set the Parent Form of the Child window.
                newMDIChild.MdiParent = this;

                // Display the new form.
                newMDIChild.WindowState = FormWindowState.Maximized;

    Please help to rectify the problem.

  2. Answer
    Peter avatar
    1148 posts

    Posted 02 Apr 2009 Link to this post

    Hello Jack,

    Thank you for writing.

    The RibbonBar does not handle this sequence of adding a child form. I would like to suggest first to show the form and after that to do maximize:

    // Display the new form.         
    newMDIChild.WindowState = FormWindowState.Maximized; 

    We are planning to handle this in future though. Don't hesitate to contact us if you have other questions.

    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  3. DevCraft R3 2016 release webinar banner
  4. Jack
    Jack avatar
    9 posts
    Member since:
    Feb 2009

    Posted 02 Apr 2009 Link to this post

    Thanks Peter,
    The sequence did worked..

Back to Top