Sorry for bad english.
I'm beginner in VB.Net, on this question I want to make textbox validation to show messagebox when maximum limit is reached. below this code
Public Class Form1
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
Dim i As Integer
TextBox1.MaxLength = 6
i = TextBox1.MaxLength
If TextBox1.Text.Length > i Then
MsgBox("Maximum is 6 Character")
End If
End Sub
End Class