Validating event visual basic
End Sub Can you think of any other way to get the information I need?
Resume Layout(False) End Sub #End Region Private txt Source File Need Validating As Boolean = False Private Sub Form8_Load(By Val sender As System. Validating 'Some code here to determine which control caused the 'validating event to occur.
I am creating a Pocket PC program for a symbol scanner.
The user will be able to scan a bar code with the scanner. Click 'Variables and objects Dim c DB As cls DBConn = New cls DBConn 'Connection Class Dim str Conn As String = c Str Conn 'Get connection string for database Dim o Conn As New Sql Connection 'SQL connection object Dim int Return ID As Integer 'Return ID from Stored Procedures Dim o Comm As Sql Command 'SQL Command object Dim b Fail As Boolean = False 'Test for failure 'Validate form has data If Username. Text 'Return value from stored procedure Dim s Param As Sql Parameter s Param = New Sql Parameter s Param.
Durkin What event do you want to fire and what would you like to do in that event?
Private Sub Combo Box1_Got Focus(By Val sender As Object, By Val e As System.
Protected Overloads Overrides Sub Dispose(By Val disposing As Boolean) If disposing Then If Not (components Is Nothing) Then components. Dispose(disposing) End Sub 'Required by the Windows Form Designer Private components As System. IContainer 'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified using the Windows Form Designer.
-- Chris dunawayc[AT]sbcglobal_lunchmeat_[DOT]net To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and replace certain words in my E-Mail address.
If the bar code does not exist then a message will be displayed otherwise it will go on from there. Thanks for all the answers about which event to use but does anyone know how to lookup data in a sql table and return it if it exists or to display a message if it does not exist? Focus() b Fail = True End If End If If b Fail = False Then 'All is well 'Connect to SQL server and validate login Try 'Pass connection string to Sql Connection o Conn. In my case that makes a difference since I have additional data embedded in the barcode that tells my app what the target field should be for a specific barcode. End If Something else that is cool is the Symbol SDK you can get from Symbol's Dev Center website.