public partial class Form3 : Form { public string username,password,repassword; public Form3(string password) { InitializeComponent(); password = textBox2.Text; } private void button1_Click(object sender, EventArgs e) { string password = textBox2.Text; string username = textBox1.Text; string repassword = textBox3.Text; if (password == repassword) { MessageBox.Show("Successfully Registered"); Form2 newwin = new Form2(); Form3 newwindow = new Form3(); this.Close(); newwin.Show(); } else { MessageBox.Show("Passwords Do Not Match OR Not All Required Fields Filled"); this.Close(); Form3 newwindow3 = new Form3(); newwindow3.Show(); } Form2 passvalue = new Form2(password);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)