Home All Groups Group Topic Archive Search About
Author
9 Mar 2006 1:00 PM
Roy
Hi all,

How to close(unload) a Windows form on load event or any other event and not
let to be displayed?
Thanks in advance,

Roy

Author
9 Mar 2006 1:42 PM
Ron
form1 unload

Show quoteHide quote
"Roy" wrote:

> Hi all,
>
> How to close(unload) a Windows form on load event or any other event and not
> let to be displayed?
> Thanks in advance,
>
> Roy
Author
9 Mar 2006 1:46 PM
playwin
"Roy" <R**@discussions.microsoft.com> wrote in message
news:1B371A98-4CF9-47F4-AB0B-98903E21B56E@microsoft.com...
> Hi all,
>
> How to close(unload) a Windows form on load event or any other event and
> not
> let to be displayed?
> Thanks in advance,
>
> Roy


Not sure what you meant.
But there is a Unload <object> to unload and <object>.hide method to hide, I
guess.
Author
9 Mar 2006 4:24 PM
Jeff Johnson [MVP: VB]
"Roy" <R**@discussions.microsoft.com> wrote in message
news:1B371A98-4CF9-47F4-AB0B-98903E21B56E@microsoft.com...

> How to close(unload) a Windows form on load event or any other event and
> not
> let to be displayed?

I'm going to take a guess that you're getting error 364: form was unloaded.
If so, you can simply trap and ignore this error.

Since you used the term "Windows form," let me also give you my standard
..NET response, in case it applies:

This is a VB "classic" newsgroup. Questions about VB.NET (including VB 2005,
which has dropped .NET from its name) are off-topic here.

Please ask .NET questions in newsgroups with "dotnet" in their names. The
*.vb.* groups are for VB6 and earlier. If you don't see the *.dotnet.*
groups on your news server, connect directly to the Microsoft server:
msnews.microsoft.com.