Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/11/2009, 14:53
Avatar de eperedo
eperedo
 
Fecha de Ingreso: septiembre-2009
Ubicación: Perú
Mensajes: 654
Antigüedad: 15 años, 5 meses
Puntos: 16
Respuesta: Cargar Datagridview con datos de busqueda desde otro winform

Podrías hacer la llamada al método RecargaGrilla luego del ShowDialog()
Código vb.net:
Ver original
  1. Dim ConsultaCliente As New consulta_cliente
  2. ConsultaCliente.ShowDialog()
  3. RecargarGrilla(ConsultaCliente.txBusqueda.Text, ConsultaCliente.txOpcion.Text)

Y en el evento KeyDown sólo cierras el formulario
Código vb.net:
Ver original
  1. 'BUSQUEDA POR RUT
  2.             If txOpcion.Text = OpcionRut Then
  3.                 Me.Close()              
  4.             End If
  5.  
  6.             'BUSQUEDA POR NOMBRE
  7.             If txOpcion.Text = OpcionNombre Then
  8.                 Me.Close()
  9.             End If

Espero te de una idea
__________________
Eduardo Peredo
Wigoin