I have the following problem with passing values through different classes.
In general, MainForm has a textfield called IDNO and i want to load UserControl in MainForm filtered by this IDNO.
TypeScript |
I called the above code when loading the UserControl.
Any suggestions?
Thank you in advance.

Roei BarRank #1,271 · 1.4K reputationPosted Sep 25, 2009, 3:57 AM EDT
here is a sample for 2 forms Data passing
Assuming that formB is initialized in formA I would recommend adding a string to the constructor of formB sending the Texbox1.Text
as in
class formB: Form{ private string data; public formB(string data) { InitializeComponent(); this.data = data; } //rest of your code for the class }DealyRank #9,518 · 205 reputationPosted Sep 25, 2009, 11:30 PM EDT
Your explanation sure help me understand how things works :)