You want to leave the event. I just threw this into the default C # WinForms application:
namespace WindowsFormsApplication1 { public partial class Form1 : Form { private void OnLeave(object sender, EventArgs e) { lblMsg.Text = "left field 1"; } private void OnLeave2(object sender, EventArgs e) { lblMsg.Text = "left field 2"; } } }
It works as you expected. Obviously, you can do anything you like in the Leave() handler, including forcing focus in another place, but be careful not to confuse the user ...
source share