>Hello All,
>I need to ensure (programatically)that any open form is closed before my application exits.
>How do i go about it.
>TIA
It is better if each form is opened through a special method in your appication object. (Ask me if you don't know what an "application object" is.)
This method would add the form to a global array, or, better, to an array property which is also part of the application object. The form would be added as an object reference.
Then, you can go through this array, and issue .Release() for each form object.
HTH,
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)