private void textBox9_KeyPress(object sender, KeyPressEventArgs e) { if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar) && (e.KeyChar != '.')) { e.Handled = true; } StaticsFunctions.manejarEventos(e, this); }
private void textBox1_KeyUp(object sender, KeyEventArgs e) { StaticsFunctions.manejarEventos(e, this); if (e.KeyCode == Keys.Enter) { panel3.Controls.Clear(); buscarProductos(); } }
private void textBox2_KeyUp(object sender, KeyEventArgs e) { StaticsFunctions.manejarEventos(e, this); if (e.KeyCode == Keys.Enter) { tp = StaticsFunctions.buscarServicios(textBox2.Text); panel2.Controls.Clear(); agregarServicios(); } }
private void textBox4_KeyUp(object sender, KeyEventArgs e) { StaticsFunctions.manejarEventos(e, this); if (e.KeyCode == Keys.Enter) { tp = StaticsFunctions.buscarProv(textBox4.Text); var list = new BindingList <GVProveedor>(mandarProvGV(tp.proveedores)); dataGridView2.DataSource = list; reiniciarTextBox(); modificarProveedor = false; } }
private void textBox2_KeyPress(object sender, KeyPressEventArgs e) { if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar) && (e.KeyChar != '.')) { e.Handled = true; } // Only allow one decimal point if ((e.KeyChar == '.') && ((sender as TextBox).Text.IndexOf('.') > -1)) { e.Handled = true; } StaticsFunctions.manejarEventos(e, this); }
private void textBox9_KeyUp(object sender, KeyEventArgs e) { StaticsFunctions.manejarEventos(e, this); if (e.KeyCode == Keys.Enter) { tc = StaticsFunctions.buscarClientesPorTelefono(mandarTelefono()); panel1.Controls.Clear(); agregarClientes(); } if (e.KeyCode == Keys.Back) { if (textBox9.Text.Length == 0) { textBox8.Focus(); } } }
private void button2_KeyPress(object sender, KeyPressEventArgs e) { StaticsFunctions.manejarEventos(e, this); }
private void dataGridView2_KeyPress(object sender, KeyPressEventArgs e) { StaticsFunctions.manejarEventos(e, this); }
private void AgregarProducto_KeyPress(object sender, KeyPressEventArgs e) { StaticsFunctions.manejarEventos(e, this); //MessageBox.Show((int)e.KeyChar+"", "Evento"); }
private void textBox6_KeyUp(object sender, KeyEventArgs e) { StaticsFunctions.manejarEventos(e, this); }