private void button1_Click(object sender, EventArgs e) { if (textBox1.Text == "filza" && textBox2.Text == "mirha") { Neelumoil mainP = new Neelumoil(); mainP.ShowDialog(); Visible = false; } else { MessageBox.Show("Enter correct login!"); } }
private void button1_Click(object sender, EventArgs e) { Form f = new Neelumoil(); f.Show(); }