如何在.NET中得到TextBox中的中文拼音的首字母,请高手指教一下,用什么方法能得到文本框中的中文的拼音首字母,用什么控件能做到?

解决方案 »

  1.   

    http://hi.baidu.com/zck98530/blog/item/0df2914596eb703b8694733d.html
      

  2.   


      if (textBox1.Text.Length > 1)
                {
                    string str = textBox1.Text.Substring(0, 1);
                    MessageBox.Show(str);
                }
                else
                {
                    MessageBox.Show("文本中无值");
                }