Torna al Thread
Private Sub TextBox_Validating(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles TextBox.Validating
If TextBox.Text = "chiudi" Then
Me.Close()
Else
If Not CondizioneValidazione Then e.Cancel = True
End If
End Sub