在winform中的button,點擊后先設置enable為false,中間處理其他,最后設置enable為true但是執行過程中再點擊button,依然可以執行clickprivate void button1_Click(object sender, EventArgs e){button1.Enabled = false;textBox1.Text += "在執行中········";//process somethingtextBox1.Text += "執行完畢!";button1.Enabled= true;}這問題怎么解決
- 2 回答
- 0 關注
- 966 瀏覽
添加回答
舉報
0/150
提交
取消