Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ctrlボタンの場合、クリックイベントハンドラーでボタンを+クリックするかどうかを検出する方法は? C# を使用して VS 2010 を使用しています。
私たちはwinforms、wpfまたはaspアプリケーションについて話しているのですか?私はそれがwinformsであると簡単に仮定するので、ここに行きます:
Form Form1; button.Click += click; private void click(object s, EventArgs e) { if(Form1.ModifierKeys == Keys.Control) ... // Whatever you need here }