MDI Parent Child WindowState Irregular Behaviour

4 posts, 0 answers
  1. Jayden MacRae
    Jayden MacRae avatar
    5 posts
    Member since:
    Aug 2009

    Posted 26 Aug 2009 Link to this post

    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.
  2. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 27 Aug 2009 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jeremy Murtishaw
    Jeremy Murtishaw avatar
    86 posts
    Member since:
    Apr 2009

    Posted 13 Sep 2009 Link to this post

    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
  5. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 14 Sep 2009 Link to this post

    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.
Back to Top