如果不能,怎么才能得到?等待中

解决方案 »

  1.   

    不能
    只能通过 控件.Text属性 得到
      

  2.   

    如果不借助于text 控件呢?该怎么得到呢?
      

  3.   

    在 c# 中 从抽象类继承的类,怎么提示 has no constructors defined? 是什么原因啊?
     public class drawT1 : TextBoxBase
        
    {}
      

  4.   

      private void textBox1_KeyDown(object sender, KeyEventArgs e)        {            string G_str_Mode = "";            string G_str_text = e.KeyCode + ":" + e.Modifiers + ":" + e.KeyData + ":" + "(" + e.KeyValue + ")";             if (e.Shift == true)                G_str_Mode = "Shift 键被按下";            if (e.Control == true)                G_str_Mode = "Ctrl 键被按下";            if (e.Alt == true)                G_str_Mode = "Alt 键被按下";            this.Text = G_str_text + G_str_Mode;        }用别的控件就能显示keydown,keyup的消息
      

  5.   

    这个需要使用hook才能实现的。
      

  6.   

    用钩子的话 也只能得到 按下的建(例如 ABC等) 而不是 输入法的字符
      

  7.   

    重载 wndproc ()函数,wm_ime_char 命令时 可以获得输入法显示的字符串。