do you mean for the "ForeColor"?
Exactly. Know why? Because:
((int)(((byte)(60)))
it's the same as
60
Also, tbname.Text.Length + 1 . Why plus 1? Count how many times it would iterate if your string would be, e.g. 2 symbols length.
It doesnt pick up when a number is entered and it doesnt do anything when a number isnt entered. I dont get it :\ this code just doesnt seem to work at all
Answer the previous question, cause it may throw an exceptions to you (I would be surprised, if it's not :)). That may be cause a problem.
P.S. Char.IsLetter(n) works pretty good in here, and determines a strings also as the others symbols.