Hi
There is a LOT more to it than this stand alone simple example I show below, but maybe this will help.
This example shows a Button on the Form2 in TabPage(1) which retains relative position when Form1 is resized etc. You already have the means to resize child controls in Form2 so using that in conjuction may be what you want.
' Form1 with a TabControl
' which has TabPage(0) and
' TabPage(1)
' and a Form2
Option Strict On
Option Explicit On
Public Class Form1
Dim WithEvents butt As New Button
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
With Form2
.Text = "TEST FORM"
.Dock = DockStyle.Fill
.TopLevel = False
.BackColor = Color.Red
.Show()
End With
With butt
.AutoSize = True
.Font = New Font(.Font.FontFamily, 20)
.Text = "New Button"
.Location = New Point(TabControl1.TabPages(1).Right - butt.Width - 30, 20)
.BackColor = Color.LightGreen
.Anchor = AnchorStyles.Top Or AnchorStyles.Right
End With
TabControl1.TabPages(1).Controls.Add(Form2)
Form2.Controls.Add(butt)
End Sub
End Class