当我的exe在c#中运行时如何禁用打印屏幕? [英] how to disable print screen when my exe running in c# ?

查看:89
本文介绍了当我的exe在c#中运行时如何禁用打印屏幕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想禁用打印屏幕键,键也不能比我的表格关闭焦点。



因此可以在我的exe运行时禁用打印屏幕键?提前谢谢。



我试过



private void Display_KeyDown(object sender,KeyEventArgs e)

{

if(e.KeyCode == Keys.Snapshot)

this.Hide();

}

I want to disable print screen key, Key also not work than my form off focus.

So is it possible to disable Print screen key when my exe run ? Thank you in advance.

I was try

private void Display_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Snapshot)
this.Hide();
}

推荐答案

以下链接中有一些好主意。谷歌上还有很多,可以使用搜索关键词如何禁用打印屏幕键C#



来自C#的低级Windows API挂钩以阻止不必要的击键 [ ^ ]



请帮助我,如何禁用打印屏幕? [ ^ ]



如何禁用PRINT SCREEN运行我的Appli时按钮WPF中的阳离子? [ ^ ]



禁用打印屏幕键 [ ^ ]
There are some good ideas in the following links. There are many more on Google, available using search keywords how to disable print screen key C#

Low-level Windows API hooks from C# to stop unwanted keystrokes[^]

plz help me ,how to disable print screen?[^]

how to disable "PRINT SCREEN" button while running my Application in WPF?[^]

Disable Print Screen Key[^]


这篇关于当我的exe在c#中运行时如何禁用打印屏幕?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆