Killing/Closing window/form

petejryan
09-08-2003, 08:35 PM
Hey,

I have a simple interface, on a form (that when it loads, changes the enabled attribute of several buttons to False) I have a button that does some stuff (displays some database results) and then hides the window before showing a new one.

If I then go back to the main page and open the original form, the old database results are still there and all the buttons are still enabled (so it doesn't appear to run the form_load function.

Is there a way of 'killing' or 'closing' this window rather than just hiding it so that the form_load function is executed?

Or am I going about this the wrong way?

Cheers

zak2zak
09-09-2003, 12:16 AM
May be this helps...
U can unload the form

Form2.Show
Unload Form1
Set Form1 = Nothing

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum