Vb net textbox event validating
Text Changed End Sub Public Sub Text Box1_Validating(By Val sender As Object, _ By Val e As System. Hi All, I am writing a simple win form which contains a button, when user click the button i want to validate all the other textbox and see if there is anything goes wrong may i know how can i trigger the validating event for all text box? thx and regard,s Norton Norton, It sounds for me as a horse behind the car. Forms Public Class Main Class Shared Sub Main() Dim form1 As Form = New Form1 Application. Initialize Component() 'Add any initialization after the Initialize Component() call End Sub 'Form overrides dispose to clean up the component list. New() 'This call is required by the Windows Form Designer. My form has 15 textboxs and I want to validate everyone using the event Key Press or validating.
Error Provider Friend With Events txt Email As System. Label 'Required by the Windows Form Designer Private components As System. Container 'NOTE: The following procedure is required by the Windows Form Designer 'It can be modified using the Windows Form Designer. Resume Layout(False) End Sub #End Region Private Sub Text Box1_Text Changed(By Val sender As System. For example, consider the following VB6 code: Private Sub Text1_Got Focus() Text1.Back Color = vb Yellow End Sub Private Sub Text1_Lost Focus() Text1.