This is an example of code for test cases of all characters in a string of a textbox or all numeric in textbox. I hope you find it helpful. It is written in visual basic .net
public sub testcase()...