public static bool IsChinese(char c) {
return (int)c >= 0x4E00 && (int)c <= 0x9FA5;
}

解决方案 »

  1.   

    最好改成:
    public static bool IsChinese(string str) 
    {
    return (int)str[0] >= 0x4E00 && (int)str[0] <= 0x9FA5;
    }private void button1_Click(object sender, System.EventArgs e)
    {
    if(IsChinese("1"))
    MessageBox.Show("是汉字");
    else
    MessageBox.Show("不是汉字");
    }
      

  2.   

    bool yn=Regex.IsMatch(tex.Text,@"[\u4e00-\u9fa5]+");//为正是有中文
      

  3.   

    中文的Unicode大概是从4E00到9FA0,  
    /^[\u4E00-\u9FA0]+$/