在一個函數或者事件中調用另外的事件,例如調用Load事件
private void EventForm_Load(object sender, EventArgs e) { //相關內容 } private void textBox1_KeyDown(object sender, KeyEventArgs e) { EventForm_Load(this,null);//調用Load // this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(EventForm_Load); }
