2015-12-10 20 views

回答

1

嘗試:

textbox.Leave += new EventHandler(textBoxLeave); 

實際的處理程序:

private void textBoxLeave(object sender, EventArgs e) 
    { 
     // put your code here 
    } 
+0

啊 - 所以沒有像KeyPressHandler這樣的特殊處理程序 - 我會試試 – Flint

+2

注意''新的EventHandler()'語法現在是多餘的。 'textbox.Leave + = textBoxLeave;'會很好,而且更短。 –

+0

優秀 - 有用 - 謝謝 – Flint