namespace SmallTestApplication { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { previewinput dos = new previewinput(); dos.Show(); dos.label2.Text = textBox1.Text; } public string getdataform3() { Form3 form3obj = new Form3(); form3obj.getvar = textBox1.Text; return form3obj.getvar; } } } namespace SmallTestApplication { public partial class previewinput : Form { public previewinput() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { Form3 objform3 = new Form3(); objform3.Show(); } } } namespace SmallTestApplication { public partial class Form3 : Form { public Form3() { InitializeComponent(); } public string getvar; private void button1_Click(object sender, EventArgs e) { Form1 objform1 = new Form1(); MessageBox.Show(objform1.textBox1.Text) //MessageBox.Show(objform1.getdataform3()); //previewinput dos = new previewinput(); //MessageBox.Show(dos.label2.Text); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)