This is a migrated thread and some comments may be shown as answers.

ribbonbar with mdi child maximized

2 Answers 73 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Jack
Top achievements
Rank 1
Jack asked on 02 Apr 2009, 03:39 AM
Hi,
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;
            newMDIChild.Show();
        }



Please help to rectify the problem.

Thanks,
Jack

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 02 Apr 2009, 08:20 AM
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.Show(); 
newMDIChild.WindowState = FormWindowState.Maximized; 

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

Greetings,
Peter
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Jack
Top achievements
Rank 1
answered on 02 Apr 2009, 10:20 AM
Thanks Peter,
The sequence did worked..

Regards,
Jack
Tags
RibbonBar
Asked by
Jack
Top achievements
Rank 1
Answers by
Peter
Telerik team
Jack
Top achievements
Rank 1
Share this question
or