Windows应用程序以编程方式单击链接按钮 [英] windows application click a link button programatically

查看:77
本文介绍了Windows应用程序以编程方式单击链接按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了一个Windows应用程序,在这里我想以编程方式单击最终用户打开该应用程序并且如果在正常时间内不能正常工作的情况下的链接按钮.

i have developed a windows application,here i want to click a link button programatically when the end user open the application and does not work on a certain time,if he works go normally.

推荐答案

在页面中放置一个计时器,并根据配置的时间流逝,触发链接/按钮单击事件.
使用PerformClick控制方法.

在这里查看:如何:调用按钮的单击事件以编程方式 [ ^ ]
尝试!
Put a timer in your page and based on configured time lapse, trigger the link/button click event.
use PerformClick method of control.

Look here: How to: Call a Button''s Click Event Programmatically[^]
Try!


这很简单,但是您的设计...

这称为反模式.

阅读此内容: http://en.wikipedia.org/wiki/Anti-pattern [ http://en.wikipedia.org/wiki/Magic_pushbutton [ ^ ].

你能看到这和你在做什么吗?

—SA
This is easy, but your design...

This is called anti-pattern.

Read this: http://en.wikipedia.org/wiki/Anti-pattern[^] and this: http://en.wikipedia.org/wiki/Magic_pushbutton[^].

Can you see how that is related to what you''re doing?

—SA


这篇关于Windows应用程序以编程方式单击链接按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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