|
-
May 23rd, 2005, 12:54 PM
#1
Thread Starter
Lively Member
How to stop my form from being unloaded?
I'm not sure how this works, but I have a frmMaster which calls on a global module to perform a large amount of the work... this was to get past the problem with a module's Main() sub ending the program at the end of the sub. Yes, a little cheap, but it works.
I am just having a little trouble with the form. In the Activated event, I've tried me.Hide and me.Visible = false. These both work, but .NET seems to be unloading the form. While the global module it doing processing, .NET will randomly complain that my form (which is NOT being used) is not set to an instance of an object!
This is temporarily solved by setting .Opacity to 0, but is there a better way...a way to stop .NET from automatically trying to unload it?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|