View Single Post
 
Old 02-14-2017, 05:07 PM
Cerian Knight's Avatar
Cerian Knight Cerian Knight is offline
Polymath (in disciplina)

Super Moderator
* Expert *
 
Join Date: May 2004
Location: Michigan
Posts: 4,199
Default

First, confirm this works for you in a new project:
Code:
'Create a new Windows Forms project and add a TextBox and Button to the form
Public Class Form1
    Private Sub TextBox1_Validated(sender As Object, e As EventArgs) Handles TextBox1.Validated
        MsgBox("Warning message", vbCritical)
        RefreshFields()
    End Sub

    Sub RefreshFields()
        For Each ctrl As Control In Controls
            If TypeOf ctrl Is TextBox Then
                ctrl.ResetText()
            End If
        Next
    End Sub
End Class
__________________
I got all the answers wrong on the GLAT, apparently even #9 (where I put a period in the middle of the box and labeled it 'singularity ripe for rapid inflation').
Reply With Quote