Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Sam
  Where is Sam?
 HK
 Hong Kong
 Sam
 To: Bhushan Sahni
  Where is Bhushan Sahni?
 Jabalpur/Mumbai
 India
 Bhushan Sahni
 Tags
Subject: RE: Auto-exit idle form
Thread ID: 209678 Message ID: 209683 # Views: 2 # Ratings: 0
Version: Visual FoxPro 6 Category: Forms
Date: Tuesday, December 30, 2008 1:31:22 PM         
   


> > Hi all,
> >
> > Is it possible to exit an idle form automatically, using timer? How?
> > eg. When a user leave his seat, foxpro detects the form being idle for 1 min. and automatically exit the form.
> >
> > Thanks in advance
> >
> > SAM
>
> Hi,
>
> In the forms mousemove and keypress event you can write
>
>
> thisform.timer1.Reset
> 

>
>
> in the init you should write
>
>
> thisform.timer1.Enabled=.t.
> thisform.timer1.Interval=1000*60 &&1000 is equivalent to a second.
> 

>
> in the timer1.timer you should write
>
>
>
> thisform.Release
> 

>
>
> Regards
> Bhushan Sahni
> Millenium Softwares
> bhushan_sahni@yahoo.com
>
> Visual Foxpro a dream house for developers

Thanks.
But Jabalpur, will the form always be released, no matter what the user do?
(because the timer is set to 1000*60)



SAM

ENTIRE THREAD

Auto-exit idle form Posted by Sam @ 12/30/2008 1:04:39 PM
RE: Auto-exit idle form Posted by Stefan Wuebbe @ 12/30/2008 1:13:17 PM
RE: Auto-exit idle form Posted by Sam @ 12/30/2008 1:30:37 PM
RE: Auto-exit idle form Posted by Stefan Wuebbe @ 12/30/2008 3:03:50 PM
RE: Auto-exit idle form Posted by Sam @ 12/30/2008 3:14:58 PM
RE: Auto-exit idle form Posted by Bhushan Sahni @ 12/30/2008 1:20:39 PM
RE: Auto-exit idle form Posted by Sam @ 12/30/2008 1:31:22 PM
RE: Auto-exit idle form Posted by Bhushan Sahni @ 12/30/2008 1:39:22 PM
RE: Auto-exit idle form Posted by Sam @ 12/30/2008 3:14:28 PM
RE: Auto-exit idle form Posted by Ciprian Zaharia @ 12/30/2008 1:52:31 PM
RE: Auto-exit idle form Posted by Sam @ 12/30/2008 3:17:11 PM
RE: Auto-exit idle form Posted by Yousfi Benameur @ 12/30/2008 2:26:41 PM
RE: Auto-exit idle form Posted by Sam @ 12/30/2008 3:16:43 PM