473,847 Members | 1,865 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Loading/Unloading Forms

In VB6 I used to use frmForm1.Show to make a form visible to the user and
then use Unload frmForm1 to unload it. I have an app in which I need to
"load" and "unload" forms based on user actions. How do I do this in VB.NET?
Just hiding a form won't do as I need the logic in the OnLoad event to
execute when the form loads each time.

--
------------------------------------
Wayne Wengert
wa***@wengert.o rg
Jul 19 '05 #1
3 5807
John;

Thanks. I did not realize the .Close method was there

Wayne

"John Cottrell" <No@Spam.com> wrote in message
news:08******** *************** *****@phx.gbl.. .
You can use frmForm1.Close in .NET to actually close (i.e.
unload) a form. The Show method is also used in .NET,
although, you now have Show to load a modeless form and
ShowDialog to load a modal.
-----Original Message-----
In VB6 I used to use frmForm1.Show to make a form visible

to the user and
then use Unload frmForm1 to unload it. I have an app in

which I need to
"load" and "unload" forms based on user actions. How do I

do this in VB.NET?
Just hiding a form won't do as I need the logic in the

OnLoad event to
execute when the form loads each time.

--
------------------------------------
Wayne Wengert
wa***@wengert. org
.

Jul 19 '05 #2
There are a lot of things like that in .NET. There's a
very large section in the documentation that describes the
differences between VB.NET and VB6. In the .NET help
enter "Visual Basic, what's changed" in the "Look for:"
prompt and the topic "Introducti on to Visual Basic .NET
for Visual Basic Veterans" will be displayed.

Good luck!
-----Original Message-----
John;

Thanks. I did not realize the .Close method was there

Wayne

"John Cottrell" <No@Spam.com> wrote in message
news:08******* *************** ******@phx.gbl. ..
You can use frmForm1.Close in .NET to actually close (i.e. unload) a form. The Show method is also used in .NET,
although, you now have Show to load a modeless form and
ShowDialog to load a modal.
>-----Original Message-----
>In VB6 I used to use frmForm1.Show to make a form
visible to the user and
>then use Unload frmForm1 to unload it. I have an app in

which I need to
>"load" and "unload" forms based on user actions. How
do I do this in VB.NET?
>Just hiding a form won't do as I need the logic in the

OnLoad event to
>execute when the form loads each time.
>
>--
>------------------------------------
>Wayne Wengert
>wa***@wengert. org
>
>
>.
>

.

Jul 19 '05 #3
Thanks - will do!

Wayne

"John Cottrell" <No@Spam.com> wrote in message
news:01******** *************** *****@phx.gbl.. .
There are a lot of things like that in .NET. There's a
very large section in the documentation that describes the
differences between VB.NET and VB6. In the .NET help
enter "Visual Basic, what's changed" in the "Look for:"
prompt and the topic "Introducti on to Visual Basic .NET
for Visual Basic Veterans" will be displayed.

Good luck!
-----Original Message-----
John;

Thanks. I did not realize the .Close method was there

Wayne

"John Cottrell" <No@Spam.com> wrote in message
news:08******* *************** ******@phx.gbl. ..
You can use frmForm1.Close in .NET to actually close (i.e. unload) a form. The Show method is also used in .NET,
although, you now have Show to load a modeless form and
ShowDialog to load a modal.

>-----Original Message-----
>In VB6 I used to use frmForm1.Show to make a form visible to the user and
>then use Unload frmForm1 to unload it. I have an app in
which I need to
>"load" and "unload" forms based on user actions. How do I do this in VB.NET?
>Just hiding a form won't do as I need the logic in the
OnLoad event to
>execute when the form loads each time.
>
>--
>------------------------------------
>Wayne Wengert
>wa***@wengert. org
>
>
>.
>

.

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1824
by: vineeth | last post by:
Hi I have GUI assembly which is loaded into a seprate Appdomain using AppDomain::Load method, after using it's function i unloaded the assembly by calling the AppDomain.UnLoad() method. But i can still use the UI components displayed earlier when i loaded the Assembly. How is this possible, it should not show up or throw some exception when i use the controls right? Please advice me how this behavior is possible even after i unloaded the...
6
4508
by: Pete Davis | last post by:
I'm confused about what precisely the limitations are on loading plugins in separate app domains. In all my previous apps that supported plugins, I've loaded them into the same domain as the app, but I've just started playing around with separate AppDomains and I'm finding that I'm not having problems where I expected I would, so maybe someone can help me understand a bit better. I've read that objects instantiated in separate AppDomains...
2
1981
by: Rob | last post by:
I was working on a project and everything was going fine, then all of a sudden the form set as my startup object stopped loading. I tried setting some others as the startup object, and some of my forms will load and others won't. Those that won't load at startup don't load with the Show or ShowDialog command either. Can anyone give me a hint as to what went wrong?
3
299
by: Wayne Wengert | last post by:
In VB6 I used to use frmForm1.Show to make a form visible to the user and then use Unload frmForm1 to unload it. I have an app in which I need to "load" and "unload" forms based on user actions. How do I do this in VB.NET? Just hiding a form won't do as I need the logic in the OnLoad event to execute when the form loads each time. -- ------------------------------------ Wayne Wengert wayne@wengert.org
3
3657
by: Eric A. Johnson | last post by:
In a new project I'm creating, I have my first form that loads being used as a splash screen, with a timer that activates after 5 seconds. I then want the main form to load. However, it isn't allowing me to use frmMain.Load(). What can I use to load the main form, then unload the splash screen? Or should I, perhaps, load an invisible control form that first loads the splash screen, waits five seconds, then unloads it and loads the main...
1
2441
by: Geoff | last post by:
VB6. When selecting from drop down menu options I display different forms by using the Load (filename) and leave the form with Unload(Filename) The Load event allows me to program the opening of a particular direct access file and the Unload event lets me program the closing of the file. Things are kept 'tidy' this way.
6
2228
by: ernesto.tejeda | last post by:
Hello, I have a couple of questions regarding the loading of .js files for the browser and would like anyone to point me wher to find the answer (or if you know the answer and tell me will do just fine ;) ) - If I have several pages all using 'somejs.js' file this file is shared on disk and is downloaded only once... but how about in memory, is it also shared and just loaded once? -Also, when are the .js files unloaded from memory?
3
1137
by: Anthony P. | last post by:
Hello Everyone, I'm writing an application that, so far, only has three forms: frmSplashScreen frmLicenseScreen frmConfigurationScreen Now, frmSplashScreen has a timer that sits it on screen for 2 seconds then executes the following commands:
3
1494
by: -Lost | last post by:
Runtime dependency loading, worth the trouble? I've been researching methods of "dynamically" loading and unloading dependencies at runtime (trying my best to think of a nice solution of loading only what is necessary). Is it unreasonable to think that an application should be able to load and unload assemblies during runtime? I found a CodeProject article on this and it was a VERY involved solution -- not sure how "worth" it,...
0
9879
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9727
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10643
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10705
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9477
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5716
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5907
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3158
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.