473,396 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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.org
Jul 19 '05 #1
3 5742
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 "Introduction 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 "Introduction 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
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...
6
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,...
2
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...
3
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....
3
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...
1
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 ...
6
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...
3
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...
3
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.