[求助]textBox判断问题
											各位大侠,我刚学几天C#,有个简单的问题不会。就是在textBox1_Focus事件中,判断输入textBox1中的字符串。若是数字,汉字则合法。但若是为小数,演算子,特殊符号什么的则判断为非法,报错。请各位帮帮菜鸟。不胜感激。										
					
	 private void textBox1_Leave(object sender, EventArgs e)
        {
            string str = textBox1.Text;
            char ch;
            for (int i = 0; i < str.Length; i++)
            {
                ch = str[i];
                if( (ch >='A'&&ch<='Z')||(ch>='a'&&ch<='z')||(ch>255) )
                {
                    
                }
                else
                {
                    MessageBox.Show("只能写汉字或英文");
                    textBox1.Focus();
                    return;
                }
            }
                
        }
试试吧,自定义的特殊符号可能还不行