Bueno hice click como dijiste y me llevo a este código.
Código vb:
Ver original<Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0"), _
Global.System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")> _
Public Overloads Overridable Function ContarClientes() As Object
Dim command As Global.System.Data.SqlClient.SqlCommand = Me.CommandCollection(2)
Dim previousConnectionState As Global.System.Data.ConnectionState = command.Connection.State
If ((command.Connection.State And Global.System.Data.ConnectionState.Open) _
<> Global.System.Data.ConnectionState.Open) Then
command.Connection.Open
End If
Dim returnValue As Object
Try
returnValue = command.ExecuteScalar
Finally
If (previousConnectionState = Global.System.Data.ConnectionState.Closed) Then
command.Connection.Close
End If
End Try
If ((returnValue Is Nothing) _
OrElse (returnValue.GetType Is GetType(Global.System.DBNull))) Then
Return Nothing
Else
Return CType(returnValue,Object)
End If
End Function
Gracias por la paciencia y si no es ese no se cual mas
pues lo unico que hice luego de hacer el procedimiento fue
colocar dentro evento click del label1
Código vb:
Ver originalMe.ClientesTableAdapter.ContarClientes()