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

MDI child not totally merging with parent

8 Answers 262 Views
Form
This is a migrated thread and some comments may be shown as answers.
Roger
Top achievements
Rank 1
Roger asked on 29 Nov 2017, 11:05 PM

Hi,

am trying to make an app where the MDI parent is basically the container for the app pages..so don't want the MDI child titlebar in there at all.

Found on the forums that you open the child this way:

showform is the newly created form:

 With showForm
            .MdiParent = Me
            .WindowState = FormWindowState.Maximized
            .ShowIcon = False
            .ControlBox = False
            .MaximizeBox = False
            .MinimizeBox = False
            .FormBorderStyle = Windows.Forms.FormBorderStyle.None
            .ShowInTaskbar = False
            .Text = ""            
            .Show()
        End With

I always get 2 title bars and all the controls on the child title bar are active???? when I have disabled them. Also when I maximise the child..THEN I get the single title bar, which is what I want.....what is going on here as it appears the maximize code function and the button function are different...I want the button functionality in the code.

Am using version 2017.3.1017.40 and RadForms

 

Any ideas??

 

8 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 30 Nov 2017, 12:40 PM
Hi Roger,

I don't think that the MDI forms is the best approach for this case. Can you send us an image of the desired layout?

Perhaps it would be better to use RadDock or RadPageView to arrange the controls. 

I am looking forward to your reply.
 
Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Roger
Top achievements
Rank 1
answered on 01 Dec 2017, 12:59 AM

I am trying to get a winform in a form container..like mdi but with 1 set of controls...I have found the mdi concept puts up a fight with all sorts of sizing and double title bar problems...but the desired action I want is that of an mdi parent/ single child without the double title bars. I close a form after open the new form so there is only 1 form open at a time...I am trying to use the mdi parent as a template shell so I don't have to recreate the frame every time...RadDock doesn't fit the bill and neither does PageView....maybe I just should open each form with the screen position and dimensions of the old form if MDI doesn't work....I was hoping to have a master container of forms to handle some of the cross-form work.

0
Roger
Top achievements
Rank 1
answered on 01 Dec 2017, 01:26 AM

Hi again

used RadDock to load a form into a document window OK...but cannot resize the controls (Container/DocumentWindow) as the master form resizes??

0
Dimitar
Telerik team
answered on 01 Dec 2017, 11:08 AM
Hi Roger,

You need to dock the RadDock control inside the form. I have attached a small example that shows this.

Please do not hesitate to contact us with any additional questions or concerns. 

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Roger
Top achievements
Rank 1
answered on 04 Dec 2017, 12:03 AM

Hi Dimitsar,

thanks for the example and can see how the dock will work  but I have the same problem as for normal mdi pages in trhat I want to remove the title bar (tab name, controls) and have the document part of the container...then documents will be added an removed programatically. Is this pssible?

0
Dimitar
Telerik team
answered on 04 Dec 2017, 11:56 AM
Hello Roger,

Set the DocumentTabsVisible property to false.

Do not hesitate to contact us if you have other questions.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Roger
Top achievements
Rank 1
answered on 04 Dec 2017, 10:08 PM

Hi Dimitar,

tried you example & saw where I was fgoing wrong...thanks for the DocumentTabsVisible property but I am beginning to like the tabbed idea....the docking control is the way to go

 

Thanks

Roger

0
Dimitar
Telerik team
answered on 05 Dec 2017, 11:08 AM
Hi Roger,

I am glad that RadDock is suitable for your case. Do not hesitate to contact us if you have other questions.
 
Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Form
Asked by
Roger
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Roger
Top achievements
Rank 1
Share this question
or