Hi,
I'm using this code to add form to a panel in a main resizable form.
Works a treat. But how do I handle resizing the form that is in the panel when the panel is resized. I'd like to do this without removing the form and adding it again.
TIA
Russ
I'm using this code to add form to a panel in a main resizable form.
Code:
Dim frm As Form
Select Case e.Button.Text
Case "Staff" : frm = New frmEmployees
'Case "Details" : frm = New frmCompanyDetails
End Select
Me.pnlMain.Controls.Clear()
frm.TopLevel = False
frm.WindowState = FormWindowState.Maximized
frm.Dock = DockStyle.Fill
Me.pnlMain.Controls.Add(frm)
frm.Show()
Works a treat. But how do I handle resizing the form that is in the panel when the panel is resized. I'd like to do this without removing the form and adding it again.
TIA
Russ