I have two forms..form1 and form2 form1 contains two texboxes and one submit button form2 contains one label When i click on submit button in form1..the values of two textboxes in form1 should be sent to label in form2..
here is my code in form1
namespace password_char
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if(textBox1.Text=="abc"&&textBox2.Text=="123")
{
this.Hide();
Form2 x = new Form2();
x.Show();
}
}
}
}
how can i pass this data to label in form2?????