Lost focus for a group of controls
Posted: Fri Aug 07, 2009 2:55 pm
by Torrie >> Tue, 18 Apr 2006 1:58:02 GMT
Does anyone know an easy way to detect that the focus has been lost from a group of controls. For example if there are 3 "interactive" controls in a group box on a form and you want to detect when the focus is lost from all of the child controls in the group box, eg the user pressed tab from the last control in the group box and a control outside the group box has the focus.
There doesn't appear to be a lost focus event that I can use on a frame or group box and I'd rather not use a lost focus event on the form as this will fire for all controls on the form. I know I can code this into the lost focus event on the controls concerned and check to see if another control has received focus but wondered if there was another way?
Thanks Torrie
Does anyone know an easy way to detect that the focus has been lost from a group of controls. For example if there are 3 "interactive" controls in a group box on a form and you want to detect when the focus is lost from all of the child controls in the group box, eg the user pressed tab from the last control in the group box and a control outside the group box has the focus.
There doesn't appear to be a lost focus event that I can use on a frame or group box and I'd rather not use a lost focus event on the form as this will fire for all controls on the form. I know I can code this into the lost focus event on the controls concerned and check to see if another control has received focus but wondered if there was another way?
Thanks Torrie