Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing Form after a process

Status
Not open for further replies.

coldan

Programmer
Oct 19, 2008
98
AU
I am creating thumbnails with imageviewer.ocx which operated within a form control.

I am using the form to show the user the image in question as I scan through the entries in a table.

I have a toggle variable which allows the user to turn this viewing of the form off ( it uses thisform.visible = .f.).

This works OK until the end of the scan and the image processing is completed - at that time I have a thisform.release() command.

However, even though thisform. visible = .f. the form opens on screen and can only be closed by the X control button.

How can I KILL this form in my code?

The release() works on other forms using this control.

Thanks

Coldan
 
You can close one form from anothers method by using its name:

In myForm2.Button1.Click method (for example)
Code:
myForm1.release


Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.
 
Is this an SCX form or a form class? A form does not release, unless there are references in variables or propertoes still pointing to it. If you DO FORM xyz NAME abc then the life of the form is bound to the life of the variable abc created by the do form (or before with LOCAL, PUBLIC). Then you have control with abc = .NULL., unless there are further places the form is referenced.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top