Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Borislav Borissov
  Where is Borislav Borissov?
 Sofia
 Bulgaria
 Borislav Borissov
 To: Ulhas Amrite
  Where is Ulhas Amrite?
 Pune
 India
 Ulhas Amrite
 Tags
Subject: RE: Assingning a key to close a form
Thread ID: 143671 Message ID: 143727 # Views: 3 # Ratings: 0
Version: Visual FoxPro 9 Category: General VFP Topics
Date: Friday, August 31, 2007 9:18:05 AM         
   


> Dear Borislav Borissov
>
> I have written an "exit button class" named (exit_btn). When put it on a form it works ok. But on the same form if I put another command button - click event of which contains "exit_btn1.click" , the form doesn't close. Please guide me. the class lib myclass.vcx is uploaded.
>
> Regards,
>
> Ulhas Amrite
> https://www.foxite.com/uploads/4ac524a2-1188-419f-bc6f-f3b0de44d0a4.zip

Ulhas,
I am not sure what you do in that class. First WHY you need timer? Also maybe
That IF didn't work:

IF THIS.PARENT.PARENT.HEIGHT < (hcnt/5) OR THIS.PARENT.PARENT.WIDTH < wcnt/5
	THIS.PARENT.PARENT.RELEASE()
ENDIF

Did you check THIS.PARENT.PARENT.HEIGHT and THIS.PARENT.PARENT.WIDTH
What is THIS.PARENT.PARENT? some container? The form itself? If this is the form Why not use thisform?
The way you code it you always must put that class directly on the form level. What will happen if you put it in some container like PageFrame?


-----------------
Borislav Borissov

Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.

ENTIRE THREAD

Assingning a key to close a form Posted by FoxGuy Degante @ 8/30/2007 7:57:10 PM
RE: Assingning a key to close a form Posted by Borislav Borissov @ 8/30/2007 8:01:03 PM
RE: Assingning a key to close a form Posted by Ulhas Amrite @ 8/31/2007 8:40:54 AM
RE: Assingning a key to close a form Posted by Borislav Borissov @ 8/31/2007 9:18:05 AM
RE: Assingning a key to close a form Posted by Ulhas Amrite @ 8/31/2007 10:10:26 AM
RE: Assingning a key to close a form Posted by Ken Murphy @ 8/31/2007 3:26:11 PM
RE: Assingning a key to close a form Posted by Borislav Borissov @ 8/31/2007 3:50:48 PM
RE: Assingning a key to close a form Posted by Ulhas Amrite @ 9/3/2007 2:49:11 PM
RE: Assingning a key to close a form Posted by Ken Murphy @ 9/3/2007 2:57:20 PM
RE: Assingning a key to close a form Posted by Willson de Veas @ 8/31/2007 12:44:10 AM