i have 26links.when i click on "a", a grid is visible with footer row having textbox and addbutton along with words related to "A".But when i am entering words with other words also it is taking.when i click on addbutton, it should say u should enter word starting with "a" only.like this for all links.what to do..and how to do?


thanks in advance for ur answer

Use Regular expression.

If TextBox1.Text.ToLower.Chars(0) <> "a" Then
            MsgBox("word should start with A")
 End If

If TextBox1.Text.ToLower.Chars(0) <> "a" Then
            MsgBox("word should start with A")
 End If

thankyou this is useful to me.i tried it .it is successful

then please mark this thread as solved. ty ;)