|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Close a formHi 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 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 "Roy" <R**@discussions.microsoft.com> wrote in message Not sure what you meant.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 But there is a Unload <object> to unload and <object>.hide method to hide, I guess. "Roy" <R**@discussions.microsoft.com> wrote in message I'm going to take a guess that you're getting error 364: form was unloaded. 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? 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. |
|||||||||||||||||||||||