dwilliams
01-30-2004, 07:56 AM
VB .NET seems very different from straight VB5/6. I can't seem to figure out how to reference a value from another form.
I have form "A" where user enters text into a textbox and presses a button to invoke form "B". In the loading of form "B", I want to get the text from the textbox on form "A" the user entered. In VB5/6 I could just do something like:
formA.textbox1.text
With .NET I get "Reference to a non-shared member requires an object reference."
How do I get my code to recognize formA?
I have form "A" where user enters text into a textbox and presses a button to invoke form "B". In the loading of form "B", I want to get the text from the textbox on form "A" the user entered. In VB5/6 I could just do something like:
formA.textbox1.text
With .NET I get "Reference to a non-shared member requires an object reference."
How do I get my code to recognize formA?