Troy
Well-known member
- Joined
- Feb 7, 2005
- Messages
- 153
- Programming Experience
- 10+
Ok I'm getting confused with which event I need to place my code to enable and disable buttons on my toolbar.
I had an MDI interface and only want certain buttons to enable when certain forms are active.
I feel it should be as simple as adding code to the event of the MDI child to enable the buttons only when that child is active and given focus but when I try to add code to the gotfocus event and lostfocus event the buttons don't change properly.
There must be an easy way to set this up that I'm overlooking. Can someone help?
I had an MDI interface and only want certain buttons to enable when certain forms are active.
I feel it should be as simple as adding code to the event of the MDI child to enable the buttons only when that child is active and given focus but when I try to add code to the gotfocus event and lostfocus event the buttons don't change properly.
There must be an easy way to set this up that I'm overlooking. Can someone help?