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

MDI Parent Child WindowState Irregular Behaviour

3 Answers 52 Views
Form
This is a migrated thread and some comments may be shown as answers.
Jayden MacRae
Top achievements
Rank 1
Jayden MacRae asked on 26 Aug 2009, 08:46 PM
Hi

I have an MDI Parent (inherits from RadRibbonForm) and an MDI Child (RadForm).

The application programmatically sets the state of the window using the following code :

Const subKey As String = "Software/CompanyName/ApplicaitonName/" 
Dim isMaximised As Boolean = Boolean.Parse(Common.RegistryUtilities.GetRegistryEntry(subKey, "ListFormIsMaximised")) 
If isMaximised Then Me.WindowState = FormWindowState.Maximized 
 


When this code is called in the Form_Load event, or in the Form constructor after InitializeComponent(), and the child form does not show correctly, the top 20 odd pixels are hidden behind the Ribbon Bar.

If the same code is called from the Form_VisibleChanged event, then the behaviour is normal.

I can use the VisibleChanged event as a work around, but think that this is a bug and would like to report it.

I would also be interested in knowing if you feel this code should be called from somewhere other than the constructor or form_load.

I am using v2009.2.9.729 of the controls.

3 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 27 Aug 2009, 01:26 PM
Hi Jayden,

Thanks for contacting us.

It is OK to use this code snippet in the OnVisibleChanged event of the Form.

I would also like to inform you that this issue is known and we have already addressed it. The fix will be available in our next release and also in the Internal Builds that we may release in the meantime.

Do not hesitate to write back if you need further assistance.

Greetings,
Deyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jeremy Murtishaw
Top achievements
Rank 1
answered on 13 Sep 2009, 06:56 AM
Hello,

I am having this same problem, and require a different workaround. In our case, we have a RadPanelBar at the top of the screen, and the problem is observed in the following scenario:

1. Open an MdiChild form as windowed, and click the maximize button. 
2. Open a second MdiChild. 

It appears that the second mdichild defaults to maximized, I guess since the first one is maximized, and the top of the newly opened form is tucked under the RadPanelBar.

Is there some way to get around this?
Thanks!
Jeremy
0
Deyan
Telerik team
answered on 14 Sep 2009, 07:57 AM
Hi Jeremy Murtishaw,

Thanks for writing and for reporting this issue. Could you please share some more details about how to reproduce this issue. I would appreciate a sample Windows Forms application that I can use to investigate the case and be able to determine the reason for the undesired behavior. Please note that you will have to open a new support ticket in order to be able to attach your demo project. Thanks for your time.

Regards,
Deyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Form
Asked by
Jayden MacRae
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Jeremy Murtishaw
Top achievements
Rank 1
Share this question
or