MDI Child Issue & WindowState

8 posts, 1 answers
  1. Jaymie
    Jaymie avatar
    57 posts
    Member since:
    Jan 2009

    Posted 30 Jul 2009 Link to this post

    I have seen some similar threads, but this is not the same issue (I don't believe it is).

    I have 2 RadForms, one is a MDI parent and the other is a MDI child. As mentioned, these both inherit from a RadForm.
    Everything (nearly everything) was working correctly until I decided that I wanted the child to be maximised when opened inside the MDI parent. I used this bit of code:

        Private Sub WorkCentreLogsToolStripMenuItem_Click(ByVal sender As System.ObjectByVal e As System.EventArgs) Handles WorkCentreLogsToolStripMenuItem.Click 
            frmWorkCentreLog.MdiParent = Me 
            frmWorkCentreLog.WindowState = FormWindowState.Maximized 
            frmWorkCentreLog.Show() 
        End Sub 

    I should point out that inside my MDI parent, I use the windows ToolStrip and MenuStrip. The reason for this is that I prefer thier interface and how easily they are to add.
    I removed both of these to see if it was them that were causing the issue I was having.

    Now, the issue is this: When the child window is maximised, the parent form does not have any way of minimising or changing the window state of the child form. Nor does it display the title of the child window in the parent window's title bar (This is the same issue as others have had, but their solution was to use RadForm rather than ShapedForm. I have not used the ShapedForm at all).

    If someone could help me identify the cause and solution to this, I would be greatful.
  2. Answer
    Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 30 Jul 2009 Link to this post

    Hi Jaymie,

    Thanks for writing. The issue with the standard MenuStrip control in a RadForm that is MDIContainer is known issue and we have already addressed it in Q2 2009 SP1 release of RadControls for WinForms.

    However, the text update issue when maximizing MDI child in a MDI parent which has a standard MenuStrip control has not been reported to us previously. I have investigated the case and was able to reproduce this issue. A fix will be available in Q2 2009 SP1. I have updated your Telerik points for bringing our attention to this.

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

    Regards,
    Deyan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Marceu Schulte Leite
    Marceu Schulte Leite avatar
    3 posts
    Member since:
    Sep 2009

    Posted 07 Sep 2009 Link to this post

    Hi Deyan,
    we are evaluating your components to use in a huge project and I've downloaded the Q2 2009 SP1 for Windows Forms.
    I've replaced some components in a MID form to use the radMenu and also the radToolStrip.
    Unfortunately, after a lot of tests setting properties and sizes, the error described by Jamie still happening.
    I can't justify using Telerik components without some basic functionalities like, MDI within Themes on an existing solution to let it more friendly and fancy to users.
    Can you check if this issue was really solved and, if so, how can I solve it?
    Actually I have a radForm (within the IsMDIContainer set to true) and a radMenu with a fixed size and bellow a radToolStrip. I expect the normal behavior for the childs when they are maximized.

    Cheers,
    Marcéu
  5. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 08 Sep 2009 Link to this post

    Hello Marceu,

    Thanks for contacting us and for your interest in RadControls for WinForms. Could you please give us more details on your scenario and possibly a code snippet that you are using to load your MDI children? I have performed some tests by creating a RadForm, setting its IsMdiContainer property to true in the Visual Studio Designer, adding a RadMenu control on the form, and loading some RadForm MDI children - everything worked fine for me. Please note that it is important to set the IsMdiContainer property of the form in the Visual Studio designer when using RadMenu control to manage the MDI children. I look forward to receiving further details on your case. Thanks for your time.

    All the best,
    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.
  6. Marceu Schulte Leite
    Marceu Schulte Leite avatar
    3 posts
    Member since:
    Sep 2009

    Posted 09 Sep 2009 Link to this post

    Hi Deyan,
    I have a MDI form with the IsMDIContainer set to true and the child forms have the MDIParent set as well.
    As you said it worked in your environment I created a new RadForm from the template dispete of just renamed the old MDI form to RadForm.
    Added a radPanel, radMenu and radToolStrip and worked (the child buttons to maximize, etc are merged inside the radMenu on the right).
    But, when I tried to copy the radMenu from the existing form to the new ones the problem still.
    I'm still trying to figure out what's happening cause I've created that radMenu from the scratch and should be working.
    So, basically my problem is at the radMenu that despite of merging the child buttons is hiding them like a layer.

    Cheers,
    MSL
  7. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 11 Sep 2009 Link to this post

    Hello Marceu,

    Thanks for getting back to me and for the provided details. I am still not able to reproduce the issue that you described. However, we have introduced some improvements and fixes in RadForm for issues similar to the one that you described which will be available in Q3 2009 (scheduled for November).

    For the time being, I could give you a workaround but I'd still need a demo application which reproduces the issue so that I can investigate it thoroughly and see how I can help. Please note that in order to be able to attach files, you will have to open a new support ticket. Thanks for your time.

    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.
  8. Marceu Schulte Leite
    Marceu Schulte Leite avatar
    3 posts
    Member since:
    Sep 2009

    Posted 22 Sep 2009 Link to this post

    Hey Deyan, sorry for the delay.
    I've decided to write a new form from the scratch despite of trying to solve the problem.
    After rewriting the whole menu and putting the toolstrip everything is working fine.

    Thanks for your tests and tips.
    We are going to buy the windows form suite soon.

    Cheers,
    Marcéu Schulte Leite
  9. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 23 Sep 2009 Link to this post

    Hello Marceu,

    Thanks for getting back to me.

    I am glad to hear that the issue is resolved.

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

    Best wishes,
    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
UI for WinForms is Visual Studio 2017 Ready