就是普通键盘最右上角的那个 
keyData 要等于什么好? 谢谢~~

解决方案 »

  1.   

    看这不敢恭维的结帖率.....
    e.keyData==Keys.Subtract
      

  2.   

    看 Keys 枚举 帮助,里面都列着呢
      

  3.   

          case Keys.OemPeriod: case Keys.Decimal:   // 小数点
            text.Text += '.';
            return true;
          case Keys.Back:                           // 退格
            if (text.Text.Length > 0) text.Text = text.Text.Substring(0, text.Text.Length - 1);
            return true;
          case Keys.Escape: case Keys.C:            // Esc 或 C
            text.Text = null;
            return true;
          case Keys.OemMinus: case Keys.Subtract:   // -
            MessageBox.Show("您按了“-”键!");
            return true;
      

  4.   

    你可以alert一下啊 看看弹出什么来。
      

  5.   

    授人以鱼不如授人以渔
    你给界面加个KeyDown事件,
    然后Show出e.KeyData.ToString()就能看到所有键的KeyData值了,然后用Keys.相应的值  就行了