torturedmind
Programmer
Good day to all.
I just wanted to share my experience with a shutdown timer. The app was running smoothly until I dropped a timer (shutdown) on the main form in the main app. The problem was two of the combo boxes, both used to select names of initial approval and final approval respectively) in the sub apps behaved strangely all of a sudden. On LOSTFOCUS, both combo boxes always point to the first item (LISTINDEX is always 1) even when the user already selected an item from the drop-down list. No code was written in the LOSTFOCUS event nor there are LISTINDEX = 1 command in any part of the app. What I did to avoid this strange behavior was to ENABLED = .F. the shutdown timer in the WHEN event of both combo boxes then ENABLED = .T. in the LOSTFOCUS event. I know this somehow defeats the purpose of the shutdown timer if the user just stayed within any of the two combo box controls because the shutdown timer won't be enabled until the user leave the said controls. Did anyone ever encountered such behavior? Anyone else got better ideas than what I did?
TIA
kilroy
philippines
"Once a king, always a king. But being a knight is more than enough."
I just wanted to share my experience with a shutdown timer. The app was running smoothly until I dropped a timer (shutdown) on the main form in the main app. The problem was two of the combo boxes, both used to select names of initial approval and final approval respectively) in the sub apps behaved strangely all of a sudden. On LOSTFOCUS, both combo boxes always point to the first item (LISTINDEX is always 1) even when the user already selected an item from the drop-down list. No code was written in the LOSTFOCUS event nor there are LISTINDEX = 1 command in any part of the app. What I did to avoid this strange behavior was to ENABLED = .F. the shutdown timer in the WHEN event of both combo boxes then ENABLED = .T. in the LOSTFOCUS event. I know this somehow defeats the purpose of the shutdown timer if the user just stayed within any of the two combo box controls because the shutdown timer won't be enabled until the user leave the said controls. Did anyone ever encountered such behavior? Anyone else got better ideas than what I did?
TIA
kilroy
philippines
"Once a king, always a king. But being a knight is more than enough."