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.
使用 C#,我在不显示工具栏的情况下最大化了一个表单,但我需要禁用所有键盘快捷键(Alt+ F4、Ctrl+ Shift+Esc等),包括Ctrl+ Alt+ Del。我可以这样做吗?
您可能想要使用 OnPreviewKeyDown(在 WPF 中)事件。您可以在其中根据组合键识别用户输入和控制的内容。