csharp System.Windows.Forms.Control.ModifierKeys类(方法)实例源码

下面列出了csharp System.Windows.Forms.Control.ModifierKeys 类(方法)源码代码实例,从而了解它的用法。

作者:.NET开发    项目:System.Windows.Form   
private void button1_Click(object sender, System.EventArgs e)
{
   /* If the CTRL key is pressed when the 
      * control is clicked, hide the control. */
   if(Control.ModifierKeys == Keys.Control)
   {
      ((Control)sender).Hide();
   }
}


问题


面经


文章

微信
公众号

扫码关注公众号