plz tell me .....how can i put the textboxes values of form 1...itni form2 textboxes at load time.....?
sadaf K
0
Newbie Poster
Recommended Answers
Jump to PostHello Sadaf,
Here's an example:
Use this when opening Form2:
Form2 form2 = new Form2(textBox1); form2.Show();
Edit form2 and make it like this:
TextBox txtBox; public Form2(TextBox txtBox) { InitializeComponent() this.txtBox = txtBox; } // Now you can get form1's textbox text …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.