Thanks a lot for the answers guys.
I had something nice working yesterday, with a MDI parent for the frame and the others forms as MDI Children.
Gave me something like that :
[MDI Project attached file]
I just tried Mikefly95's solution. Seems very smooth ! I didn't know that it was possible to add forms to the splitcontainers.
This solution gave me almost the same thing, but without the borders between the main form and the children :
[Split container Project attached file]
All in all, I'm using the ChangeFormButtons to switch from a form to another (buttons located on the main form as you can see attached).
I had to change the code to work for both solutions.
For mine, I added that to the open form function :
If f1.ShowInTaskbar = False Then
f1.MdiParent = pf
End If
If I want other forms to be in fullscreen (ex the Login Page), then I set its ShowInTaskbar property to True.
So if it's not the case, I put it as an MDI Child before showing it.
The hardest part is to manage the hidding of the other forms :
Dim pf As Object
Dim f1 As Form
Private Sub HideForm(ByVal e As Object, ByVal ef As EventArgs)
e.stop()
ht.Enabled = False
If pf IsNot Nothing Then
If f1.ShowInTaskbar Then
pf.Hide()
Else
For Each item As Form In pf.MdiChildren
If item IsNot f1 Then
item.Hide()
End If
Next
End If
End If
End Sub
pf is the main form with the button.
f1 the new form to show. So I go through every MDI child and hide them except the newest one (f1).
But now when it comes to the SplitContainer solution, I don't know how I could go through every form to hide them has I no more have an MDIchild list...