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


> >
> > 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

First of all my name is Bhushan, I am from Jabalpur.

Now the form will only release if the user leaves it for 1 min. since the timer is reset on every keypress and mouse over of the form.

Yes but if the user is doing anything else other than the foxpro software it will also release. Eg. if the user has switched form you vfp application to word.

Regards
Bhushan Sahni
Millenium Softwares
bhushan_sahni@yahoo.com

Visual Foxpro a dream house for developers

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