R
rob
I have a menu item that has a check mark. When ever the check mark is
toggled I do a bunch of changes in the appropriate event handler. Now
when the app starts I read the last settings and set the menu
accordingly. So in my MainFrame_Load function I call:
showItToolStripMenuItem.Checked = lastShowItStatus;
Unfortunately, setting the checked state programmatically does not
trigger my event hander. Therefore, the internal state of the program
does not match the state shown in the menu. What is the best approach
to make the event handler execute when I set the checked state?
Thanks
toggled I do a bunch of changes in the appropriate event handler. Now
when the app starts I read the last settings and set the menu
accordingly. So in my MainFrame_Load function I call:
showItToolStripMenuItem.Checked = lastShowItStatus;
Unfortunately, setting the checked state programmatically does not
trigger my event hander. Therefore, the internal state of the program
does not match the state shown in the menu. What is the best approach
to make the event handler execute when I set the checked state?
Thanks