private void button6_Click(object sender, EventArgs e) { Form10 f = new Form10(); f.Hide(); f.Show(); }
private void pictureBox3_Click(object sender, EventArgs e) { this.Close(); Form10 f10 = new Form10(); f10.Show(); }
private void button4_Click(object sender, EventArgs e) { this.Hide(); Form10 s = new Form10(); s.Show(); }
private void button1_Click(object sender, EventArgs e) { MySqlConnection con = new MySqlConnection("server=localhost;user id=root;persistsecurityinfo=True;database=voteme;Password =jaishriRAM0385"); MySqlCommand cmd = new MySqlCommand("select * from ulogin where UserId='" + textBox1.Text + "' and Password ='******'", con); cmd.CommandType = CommandType.Text; cmd.Parameters.AddWithValue("@UserId", textBox1.Text); cmd.Parameters.AddWithValue("@Password", textBox2.Text); Form10 obj2 = new Form10(); obj2.id = textBox1.Text; con.Open(); MySqlDataReader dr = cmd.ExecuteReader(); if (dr.Read()) { Form10 obj1 = new Form10(); obj1.Show(); this.Hide(); obj1.id = textBox1.Text; } else { MessageBox.Show("Invalid Username or Password"); Form9 obj1 = new Form9(); obj1.Show(); this.Hide(); } }
private void оформитиЗамовленняToolStripMenuItem1_Click(object sender, EventArgs e) { Form10 f = new Form10(); f.Hide(); f.Show(); }
private void button4_Click(object sender, EventArgs e) { Form10 obj = new Form10(); obj.Show(); this.Hide(); }
private void button21_Click_1(object sender, EventArgs e) { this.Close(); Form10 f10 = new Form10(); f10.Show(); }
private void button3_Click(object sender, EventArgs e) { Form10 f10 = new Form10(); f10.Show(); this.Hide(); }
private void button3_Click(object sender, EventArgs e) { this.Hide(); Form10 f1 = new Form10(); f1.Activate(); f1.Show(); }
private void label2_Click(object sender, EventArgs e) { //If there is no Form 10 instance if (f10 == null) { //Instantiate Form 10 f10 = new Form10(); } //Show the new Form 10 instance f10.Show(); //Set Form 10's Form 9 value as this instance f10.f9 = this; //Hide all the necessary labels in the Form 10 instance f10.label13.Hide(); f10.label14.Hide(); f10.label15.Hide(); f10.label16.Hide(); f10.label17.Hide(); f10.label18.Hide(); f10.label19.Hide(); f10.label20.Hide(); f10.label21.Hide(); f10.label22.Hide(); f10.label23.Hide(); f10.label24.Hide(); f10.label25.Hide(); f10.label26.Hide(); f10.label27.Hide(); f10.label28.Hide(); f10.label29.Hide(); f10.label30.Hide(); f10.label31.Hide(); f10.label32.Hide(); f10.label33.Hide(); f10.label34.Hide(); f10.label35.Hide(); f10.label36.Hide(); f10.label37.Show(); f10.label38.Show(); f10.label39.Show(); f10.label40.Show(); //Set the Form 10's workShopSession string value as label 2's text value f10.workshopSession = label2.Text; //Hide this form this.Hide(); }
private void button1_Click_1(object sender, EventArgs e) { if (radioButton1.Checked) { this.Hide(); Form9 m = new Form9(); m.Show(); } else if (radioButton2.Checked) { this.Hide(); Form10 m = new Form10(); m.Show(); } else if (radioButton3.Checked) { this.Hide(); Form11 m = new Form11(); m.Show(); } else if (radioButton4.Checked) { this.Hide(); Form12 m = new Form12(); m.Show(); } else if (radioButton5.Checked) { this.Hide(); Form13 m = new Form13(); m.Show(); } else { MessageBox.Show("Please choose one of buttons!"); } }
private void showToolStripMenuItem2_Click(object sender, EventArgs e) { Form10 objektForm10 = new Form10(); objektForm10.Show(); }
private void button5_Click_1(object sender, EventArgs e) { Form10 yeni = new Form10(); yeni.Show(); }
private void button8_gClick(object sender, EventArgs e) { Form10 frm = new Form10(); frm.Show(); }
public void Afisare_Forma(string Text_Forma, Form frn, string Close_or_Hide) { Form f = new Form(); switch (Text_Forma) { case "MENIU": f = new Form1(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "LECTII": f = new Form2(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "CONGRUENTA INTRODUCERE1": f = new Form3(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "CONGRUENTA INTRODUCERE2": f = new Form4(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "CONGRUENTA INTRODUCERE3": f = new Form5(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "CONGRUENTA CAZURI1": f = new Form6(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "CONGRUENTA CAZURI2": f = new Form7(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "CONGRUENTA CAZURI3": f = new Form8(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "CONGRUENTA CAZURI4": f = new Form9(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "CONGRUENTA CAZURI5": f = new Form10(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "CONGRUENTA CAZURI6": f = new Form11(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "CONGRUENTA DREPTUNGHICE": f = new Form12(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "TESTE": f = new Form16(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "TEST USOR": f = new Test_Usor_Pagina_1(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "TEST MEDIU": f = new Test_Mediu(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; case "TEST GREU": f = new Test_Greu(); f.Show(); Verifica_daca_Close_sau_Hide(Close_or_Hide, frn); break; } }
private void заказыToolStripMenuItem1_Click(object sender, EventArgs e) { Form f10 = new Form10(); f10.Show(); }
private void button2_Click(object sender, EventArgs e) { this.Visible = false; Form10 connectionMode = new Form10(); connectionMode.Show(); }