In vb6 (in Form2's code window)-
TextBox1.Text = Form1.CommandButton1.Caption
How do you pass information between 2 forms in a vb.net
project?
TIA,
Rush
Printable View
In vb6 (in Form2's code window)-
TextBox1.Text = Form1.CommandButton1.Caption
How do you pass information between 2 forms in a vb.net
project?
TIA,
Rush
you can make a class file to store the info (its the true OOP way)
dim frmForm1 as new Form1
TextBox1.Text = frmForm1.Button1.Text
By the looks of your name it looks like you are in a rush.
But still pick up a book and learn the easy stuff. Unless you don't like declaring new instance of forms then do VB6.