Remove re-sized control box from ribbon

Jan 7, 2014 at 3:46 PM
Hello,

I'm using MDI forms with the ribbon and didn't want to be able to have the form re-sized. How do I remove the ribbon re-sized and exit control from the ribbon? Thanks.
Developer
Jan 8, 2014 at 6:33 AM
For me works to set the FormBorderStyle of the form to something like "Fixed..."
What do you mean by the "exit control"? The exit button on the top right of each form?
Jan 8, 2014 at 3:15 PM
Thanks for the reply. Almost... On the main form there are the 3 controls; min/max/close, that's not the issue. Just under that are the same 3, but these are for the forms inside the MDI located on the ribbon control. If I click on let's say the minimize, the form minimizes in the MDI form. I would like to remove the 3 controls on the ribbon.

I selected Ribbon1.Minimized=False, but that didn't work. I was unable to fine FormBorderStyle anywhere on the ribbon control.

Thanks.

Studio VB.Net 2010
Developer
Jan 9, 2014 at 6:51 AM
You need to set those (mdiChild.ControlBox = false) of the form you add to the Ribbon!
Developer
Jan 9, 2014 at 7:17 AM
Edited Jan 9, 2014 at 7:19 AM
This is demonstrated in the demo project.
Jan 9, 2014 at 7:04 PM
Thank you the reply. I can't say I really understand where to look sense all the demo's are in C# and I'm doing VB.NET. I loading some of the forms like this, but maybe there's a better way to do this:
Try
            If Ribbon1.ActiveTab.Text = "test 1" Then
                Explorerform2.MdiParent = Me
                Explorerform2.Show()
                '   Hid the other forms.
                keyform.Hide()
                Stringform.Hide()
                keystoreform.Hide()
            ElseIf Ribbon1.ActiveTab.Text = "test 2" Then
                keyform.MdiParent = Me
                keyform.Show()
                '   Hid the other forms.
                Explorerform2.Hide()
                Stringform.Hide()
                keystoreform.Hide()
            ElseIf Ribbon1.ActiveTab.Text = "test 3" Then
                Stringform.MdiParent = Me
                Stringform.Show()
                '   Hid the other forms.
                Explorerform2.Hide()
                keyform.Hide()
                keystoreform.Hide()
            ElseIf Ribbon1.ActiveTab.Text = "test 4" Then
                keystoreform.MdiParent = Me
                keystoreform.Show()
                '   Hid the other forms.
                Explorerform2.Hide()
                keyform.Hide()
                Stringform.Hide()
            Else
                Exit Sub

            End If
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try