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.
WPFフォームで閉じるボタンを無効にすることは可能ですか? 閉じるボタンを無効にするにはどうすればよいですか?
私は周りを検索しており、以下の解決策を見つけました。しかし、それは Windows フォームでのみ機能します。
private void Form1_FormClosing(object sender, FormClosingEventArgs e) { e.Cancel = true; }