2
Answers

Passing variable content from 1 form to another

john.laponsie

john.laponsie

20y
2.7k
1
This is probably a stupid question with a very simple solution, but I can't find a simple way to do it. I have a Windows form (Form1) with a textbox, and I want to pass the value from the textbox form (Form1) to a label on another form (Form2) and display it. That's all I need. I tried get and set in its own class and maybe I'm not assigning the variable correctly or am not retrieving the variable correctly or am not initializing the class correctly. Can anyone help? TIA, John
Answers (2)