FancyPrairie
Programmer
I've created a group of controls that act together as 1 unit. When the cursor moves to a control on the form that is not part of my group of controls, I need to hide some of the controls that are part of the group. To do this I need to either process the GotFocus event on every control on the form or set a timer event on the form. I'm currently using the timer technique. When the timer fires it checks to see if the active control is part of the group of controls. If not, it hides specific controls in the group.
But, since the group of controls I've created will become part of my library of routines that other programmers will be using, the timer technique could interfere with timer events on their forms. I could set a flag to indicate that the timer event was kicked off to check my stuff. The programmer would then have to write code to handle the flag.
If a programmer decides to use my "group" of controls, I want to make it as simple as possible to use (For example, I've created a wizard that will add the group of controls to the form). I don't want the programmer to have to do any additional coding to make my "group" of controls work properly.
So, does any one have another solution that will let me know when the active control is not part of the group of controls? I was hoping that there is another timer besides the form timer (ie a vba function or an activeX control) that I can use.
But, since the group of controls I've created will become part of my library of routines that other programmers will be using, the timer technique could interfere with timer events on their forms. I could set a flag to indicate that the timer event was kicked off to check my stuff. The programmer would then have to write code to handle the flag.
If a programmer decides to use my "group" of controls, I want to make it as simple as possible to use (For example, I've created a wizard that will add the group of controls to the form). I don't want the programmer to have to do any additional coding to make my "group" of controls work properly.
So, does any one have another solution that will let me know when the active control is not part of the group of controls? I was hoping that there is another timer besides the form timer (ie a vba function or an activeX control) that I can use.