如何在C#中执行特定运行的命令 [英] How to execute a command in C# for a specific running

查看:171
本文介绍了如何在C#中执行特定运行的命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在C#中为Exp的特定运行窗口执行命令:'Ctrl + Alt + F5'刷新应用程序窗口

提前使用Thanx ...

How to execute a command in C# for a specific running window for Exp :'Ctrl + Alt + F5'to refresh an application window
Thanx in advance...

推荐答案

在表单上启用KeyPreview并在表格上拦截KeyDown事件



if(e.keycode = Keys.F5 && e .Control && e.Alt)

//刷新代码
Enable KeyPreview on the form and intercept KeyDown event on the form

if (e.keycode = Keys.F5 && e.Control && e.Alt)
// refresh code


这篇关于如何在C#中执行特定运行的命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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