>>>I want to close down a form after it has been inactive for a certain period of time. I'm assuming I should use a timer but I'm not sure how to use it properly to capture this situation. Any ideas?
>>
>>*** Timer.Timer event
>>IF ABS(seconds()-thisform.seconds)>1200 && check every 20 min.
>> Release Thisform
>>ENDIF
>>*** ControlX.InteractiveChange event (or something else)
>>Thisform.seconds=seconds()
>
>The Timer event and Seconds property I understand but I need some clarification on the ControlX. Do you mean I should have a particular object to update Thisform.Seconds or do I need to update it from every object?
I meant any object. You should clarify what means 'inactive' form. If it means that user doesn't change values of some controls then InteractiveChange of this controls should participate, if it means not clicking on some buttons, them buttons click events should be added, etc.
Edward Pikman
Independent Consultant