Check if a string entered is a letter (A - Z)- VB.NET

Tags: VB.NET, VB 2008, VB 2010, VB 2012, VB 2013

This is a visual basic .net code used to check if a string entered contains letters only

The following code checks if a string entered is a letter (a - z)

If Char.IsLetter(TextBox1.Text.Chars(TextBox1.TextLength - 1)) = True Then

        Else

            MsgBox("Letters Only")

End If


Share This

Home | About | Contact | Privacy Policy

Copyright visual-basic-tutorials.com 2017 - All Rights Reserved.