I’m trying to call a method as soon as a TextBox on my screen gets ‘un-focused’ if that makes any sense? The user types in a username and as soon as that textbox loses focus I want to fire an event that checks if that username is indeed available.
Thanks!
There is a
Control.Leavein C#, which I think is perfect for your purpose.you can go to events of the textbox in visual studio, and find the
Leaveevent.The code generated will be like :