In my program, when the user opens a window (About or Options, e.g.) I show controls as they were when the user last used the program. As an example, I set a checkbox value to true or false in code so that it is in the same state as the user left it. In troubleshooting my code, I realized that setting a control in code triggers the control's event, in this case the checkbox's default event. Is there a better way to solve this situation than using a global boolean variable at the beginning of an event so that I can prevent the remainder of the event from executing if I trigger the event from code rather than the user triggering the event from the user interface? Example:
If gblnVariable = false then exit end if Sincerely, Steve Hedgepeth _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
