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
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.
Dimitar
Progress Telerik
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.
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??
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
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?
Set the DocumentTabsVisible property to false.
Do not hesitate to contact us if you have other questions.
Regards,
Dimitar
Progress Telerik
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
I am glad that RadDock is suitable for your case. Do not hesitate to contact us if you have other questions.
Dimitar
Progress Telerik