private void pictureBox1_Click(object sender, EventArgs e) { Label6.Hide(); Panel1.Size = new Size(45, 727); pictureBox1.Hide(); Button1.Hide(); Button2.Hide(); Button3.Hide(); Button4.Hide(); PictureBox2.Show(); DataGridView1.Hide(); }
private void Frm_usuario_Load(object sender, EventArgs e) { // oculta elementos de la interfaz como los botones de guardar actualizar y eliminar Button1.Hide(); Button2.Hide(); Button3.Hide(); Button4.Hide(); pictureBox1.Hide(); PictureBox3.SetBounds(this.Width - 80, 25, PictureBox3.Width, PictureBox3.Height); Label6.Hide(); DataGridView1.Hide(); ComboBox1.SelectedIndex = 0; }
private void Frm_usuario_Load(object sender, EventArgs e) { // oculta elementos de la interfaz Button1.Hide(); Button2.Hide(); Button3.Hide(); Button4.Hide(); pictureBox1.Hide(); PictureBox3.SetBounds(this.Width - 80, 25, PictureBox3.Width, PictureBox3.Height); Label6.Hide(); //DataGridView1.Hide(); ComboBox1.SelectedIndex = 0; ComboBox2.SelectedIndex = 0; }
private void pictureBox8_Click(object sender, EventArgs e) { loadtimer.Stop(); timer11.Stop(); timer12.Enabled = true; timer2.Stop(); timer4.Stop(); pictureBox16.Hide(); Label6.Hide(); timer1.Stop(); internet4.Hide(); email.Hide(); calculator.Hide(); musicplayer.Hide(); books.Hide(); twittert.Hide(); notepadbox.Hide(); if (Properties.Settings.Default.amazon == "true") { amazon.Show(); } if (Properties.Settings.Default.xbox == "true") { xbox.Show(); } if (Properties.Settings.Default.notepad == "true") { notepadbox.Visible = true; } if (Properties.Settings.Default.Achievements == "true") { achievements.Show(); } }
private void Frm_usuario_Load(object sender, EventArgs e) { Button1.Hide(); Button2.Hide(); Button3.Hide(); Button4.Hide(); pictureBox1.Hide(); PictureBox3.SetBounds(this.Width - 80, 25, PictureBox3.Width, PictureBox3.Height); Label6.Hide(); DataGridView1.Hide(); ComboBox1.SelectedIndex = 0; conexion.llenarComboBox("SELECT * from tbl_departamentos", cb_departamento, "id_departamento", "nombre"); if (cb_departamento.SelectedIndex > 0 & cb_nombramiento.SelectedIndex > 0) { cb_departamento.SelectedIndex = 0; } cb_nombramiento.SelectedIndex = 0; }