C#(按钮) [英] C#(button)
本文介绍了C#(按钮)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在代码中按下按钮?
我想使用代码激活按钮(而不是按下按钮).
how to press a button in code?
i want to active a button with code(not with pressing button).
推荐答案
此处: ^ ]
Here: How to: Call a Button''s Click Event Programmatically[^]
myButton.PerformClick();
按钮的ID:button1
在您要激活按钮的方法内部,即page_load
地方
button1_click(null,null);
the id of your button: button1
inside your method that you want to activate the button, i.e. page_load
place
button1_click(null,null);
这是 [ ^ ]您要做什么?
这篇关于C#(按钮)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文