J
JAPSTER
An application has a startup form (Form1). A second form (frm2),
created from within Form1. Each form has a textbox.
To access the text in TextBox1 in frm2 from Form1, you use:
frm2.TextBox1.Text = "XXXXXX"
How do I refer to the TextBox1 controls Text property in Form1 from
frm2?
Form1.TextBox1.Text doesn't work and generates a designtime error:
Reference to a non-shared member requires an object reference.
created from within Form1. Each form has a textbox.
To access the text in TextBox1 in frm2 from Form1, you use:
frm2.TextBox1.Text = "XXXXXX"
How do I refer to the TextBox1 controls Text property in Form1 from
frm2?
Form1.TextBox1.Text doesn't work and generates a designtime error:
Reference to a non-shared member requires an object reference.