Tema: Visual.net
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/05/2012, 09:48
luyae30
 
Fecha de Ingreso: mayo-2012
Mensajes: 1
Antigüedad: 12 años, 10 meses
Puntos: 0
Visual.net

Buenos dias, si es posible necesito ayuda con este segmento de codigo, estoy realizando un formulario, y cuando doy click en el button1, este me debe trae aun datagridview, la informacion que contiene una consulta ya realizada en el tableadpater de la tabla socios, el error me sale en la linea:

Me.SociosTableAdapter.FillByNombre(SociosDS.Socios , "%" & TextBox1.Text & "%")

En esta parte "%" & TextBox1.Text & "%") en la lista de errores me dice:

Error 1 Demasiados argumentos para 'Public Overridable Overloads Function FillByNombre(dataTable As SociosDS.SociosDataTable) As Integer'.

Anexo todo el codigo del formulario


Public Class SeleccionSocioForm

Public DNI As String
Private Sub SeleccionSocioForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
DNI = SociosDS.Socios(SociosBindingSource.Position).Dni
Close()
End Sub

Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.SociosTableAdapter.FillByNombre(SociosDS.Socios , "%" & TextBox1.Text & "%")
End Sub
End Class

Gracias por ayudarme..