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

MDI Child Issue & WindowState

7 Answers 257 Views
Form
This is a migrated thread and some comments may be shown as answers.
Jaymie
Top achievements
Rank 1
Jaymie asked on 30 Jul 2009, 09:16 AM
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.

7 Answers, 1 is accepted

Sort by
0
Accepted
Deyan
Telerik team
answered on 30 Jul 2009, 02:37 PM
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.
0
Marceu Schulte Leite
Top achievements
Rank 1
answered on 08 Sep 2009, 03:02 AM
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
0
Deyan
Telerik team
answered on 08 Sep 2009, 08:36 AM
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.
0
Marceu Schulte Leite
Top achievements
Rank 1
answered on 09 Sep 2009, 11:15 PM
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
0
Deyan
Telerik team
answered on 11 Sep 2009, 09:18 AM
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.
0
Marceu Schulte Leite
Top achievements
Rank 1
answered on 23 Sep 2009, 02:49 AM
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
0
Deyan
Telerik team
answered on 23 Sep 2009, 06:37 AM
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.
Tags
Form
Asked by
Jaymie
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Marceu Schulte Leite
Top achievements
Rank 1
Share this question
or