Probably need more information about how the two forms are instantiated.
Are you passing/assigning a reference to form1 in form2?
If form1 has a text box, you could create a property to return
the value of the text box but form2 would need a reference to form1.
You could accomplish this when they are created:
MyFormClass form1 = new MyFormClass();
MyFormClass form2 = new MyFormClass();
form2.MyFormClassPointer = form1; //MyFormClassPointer is a public variable or property defined in the MyFormClass...
....or something like that....
Steve
"thawk" wrote:
I have tried to pass information from one form to another
using the described method in the documentation, but
everytime I attempt to do this I get an error message that
states that I have a null reference. I am entering data
into a text box on one form and attempting to use that
data on a second form. The problem is that the data never
gets to the second form. Any ideas?