發布時間:2020-08-06 10:04 作者:獨孤劍 閱讀:2661
public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { MessageBox.Show("test"); } private void button2_Click(object sender, EventArgs e) { // 調用 button1.Click() button1.PerformClick(); } private void button3_Click(object sender, EventArgs e) { // 調用 button1.Click() button1_Click(null, null); } }
微信打賞, 微信掃一掃
支付寶打賞, 支付寶掃一掃
如果文章對您有幫助,歡迎給作者打賞