A toolbar does NOT move focus away from active controls on a form.
Lost Focus event therrefor does NOT run. If you want that, but Lostfocus actually IS run, then you have to have code in the Toolbar buttons doing something like _screen.activeform.activecontrol.SetFocus(), which triggers the event chain valid/lostfocus/when/gotfocus.
This is typical code of a toolbar save button, for example, because without this the current edited value of the active control is not saved.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.