Example #1
0
 private void btnFind_Click(object sender, EventArgs e)
 {
     this.Hide();
     FormBusquedaE abrir = new FormBusquedaE();
     abrir.enviarDato = tbBuscar.Text;
     abrir.Show();
 }
Example #2
0
        private void btnFind_Click(object sender, EventArgs e)
        {
            this.Hide();
            FormBusquedaE abrir = new FormBusquedaE();

            abrir.enviarDato = tbBuscar.Text;
            abrir.Show();
        }
Example #3
0
        private void btnFind_Click(object sender, EventArgs e)
        {
            miconexion.Open();
            SqlCommand consulta = new SqlCommand("select * from tblEmpresa where Nombre = '"+tbBuscar.Text+ "'", miconexion);
            SqlDataReader ejecuta = consulta.ExecuteReader();
            if (ejecuta.Read() == true)
            {
                this.Hide();
                FormBusquedaE abrir = new FormBusquedaE();
                abrir.enviarDato = tbBuscar.Text;
                abrir.Show();
            }

            else
            {
                MessageBox.Show("Empresa no encontrada, verifique nuevamente",
                                    "Mensaje", MessageBoxButtons.OK, MessageBoxIcon.Information);
                tbBuscar.Clear();
            }

            miconexion.Close();
        }
Example #4
0
        private void btnFind_Click(object sender, EventArgs e)
        {
            miconexion.Open();
            SqlCommand    consulta = new SqlCommand("select * from tblEmpresa where Nombre = '" + tbBuscar.Text + "'", miconexion);
            SqlDataReader ejecuta  = consulta.ExecuteReader();

            if (ejecuta.Read() == true)
            {
                this.Hide();
                FormBusquedaE abrir = new FormBusquedaE();
                abrir.enviarDato = tbBuscar.Text;
                abrir.Show();
            }

            else
            {
                MessageBox.Show("Empresa no encontrada, verifique nuevamente",
                                "Mensaje", MessageBoxButtons.OK, MessageBoxIcon.Information);
                tbBuscar.Clear();
            }

            miconexion.Close();
        }
Example #5
0
        public void llenar()
        {
            FormBusquedaE Buscar = new FormBusquedaE();

            Buscar.enviarDato = tbBuscar.Text;
        }
Example #6
0
 public void llenar()
 {
     FormBusquedaE Buscar = new FormBusquedaE();
     Buscar.enviarDato = tbBuscar.Text;
 }