Hi. I've got in-line forms instantiated within docked tabpage controls.
What is the easiest way to get the in-line forms to resize with the main app?
I'd like to avoid the form's "resize" event, as the math never seems to add up.
___________________________
Example scenario:
Create a New Windows app
Add a Form "Form1":
Add a TabControl
Set TabControl1.Dock = Fill
Add a Form "Form2":
Set FormBorderStyle = None
Set BackColor = Maroon
Code inside Form1
I want the maroon control to resize with the main app.
What is the easiest way to get the in-line forms to resize with the main app?
I'd like to avoid the form's "resize" event, as the math never seems to add up.
___________________________
Example scenario:
Create a New Windows app
Add a Form "Form1":
Add a TabControl
Set TabControl1.Dock = Fill
Add a Form "Form2":
Set FormBorderStyle = None
Set BackColor = Maroon
Code inside Form1
Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim myForm2 As New Form2
myForm2.TopLevel = False
TabPage1.Controls.Add(myForm2)
myForm2.Show()
End Sub
I want the maroon control to resize with the main app.