在Windows中使用C#覆盖Ctrl + v窗口 [英] Overriding Ctrl+v window in Windows using C#

查看:142
本文介绍了在Windows中使用C#覆盖Ctrl + v窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想在机器中引入一项新功能,我需要覆盖Windows 7中的复制进度UI"(复制窗口").

这个想法是

当我在Windows中按Ctrl + V时,我需要覆盖该命令并执行我的窗口,而不是Windows常规复制进度UI.

Hi,

i like to introduce a new feature in my machine that i need to override the Copy progress UI (Copy Window) in Windows 7.

The idea is

when i hit Ctrl+V in windows i need to override that command and execute my window instead of windows regular copy progress UI.

推荐答案

Freind,请使用该窗口钩住键事件或覆盖Ctrl + V的现有实现,并在keydown事件上相应地自定义代码.如果您还有其他需要,请告诉我.

朋友,请找到相同的代码,也请使用true块生成您的自定义事件.
Freind, Please either use the window hook key event or override the existing implementation of Ctrl+V and customize your code accordingly on keydown event. please let me know if you want any thing else.

Friend, please find the code for same also use the true block to generate your custom event.
private void textBox1_KeyDown(object sender, KeyEventArgs e)
{
    if (e.Control && e.KeyValue == 86)
    {
        e.Handled = true;
        e.SuppressKeyPress = true;
 
    }
}  


请接受此解决方案或与您相关的解决方案.

谢谢,
Ambesha


please vote if this solution is accepted or relevant for you.

Thanks,
Ambesha



这篇关于在Windows中使用C#覆盖Ctrl + v窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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