Public Class Quotation_Add Private OldFormSize As Size End Class Private Sub Quotation_Add_SizeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.SizeChanged TabControl1.Size = New Size(TabControl1.Width + Me.Width - OldFormSize.Width, TabControl1.Height + Me.Height - OldFormSize.Height) QuodtlDataGridView.Size = New Size(QuodtlDataGridView.Width + Me.Width - OldFormSize.Width, QuodtlDataGridView.Height + Me.Height - OldFormSize.Height) OldFormSize = QuodtlDataGridView.Size End Sub