Public Class Form2
Inherits System.Windows.Forms.Form
Public frm As Form1 /// first make a public reference to your form ( eg: Form1 )
#Region " Windows Form Designer generated code "
Public Sub New(ByVal myForm As Form) /// make myForm as a Form ( not Form1 )
MyBase.New()
This call is required by the Windows Form Designer.
InitializeComponent()
frm = myForm /// initialize the instance of the form as Form1.
Add any initialization after the InitializeComponent() call
End Sub