-
Button Always Active
I've developed an application that has a main form at the bottom of the screen with command buttons as a custom menu. This is not an MDI application. All forms are shown off this form as modal forms.
However, now I would like to have one of the buttons always active. For example, this button may be used to toggle to another application, so I want the user to be able to press it at any time. But, the other menu buttons should remain disabled.
I thought I saw some API calls that allowed the button to be pressed at any time while the application was active but cannot find the code.
Any ideas?
Thanks,
Greg
-
You wouldn't necessarily have to "press" the button. You could call its click event from whereever.
-
I realize I can call the click event, but it would have to be in response to the user clicking the mouse on the button. If this button is not active then there is nothing to trigger an event. I tried using the second form's mouseup event, but it only captures clicks within the window not the menu bar below.
Any other ideas?