473,410 Members | 1,953 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,410 software developers and data experts.

Load/Unload forms

I am used to VB6 where frmMain.unload, frmNew.load worked.

What replaced this in vb.net?
Nov 20 '05 #1
4 6217
"Brett Baisley" <bb******@nbnet.nb.ca.REMOVE> schrieb
I am used to VB6 where frmMain.unload, frmNew.load worked.
You mean Load frmMain and Unload frmMain? ;-)
What replaced this in vb.net?


To create a Form instance use
Dim frmMain As New MyMainForm

To show it call
frmMain.Show
The first time before the Form is shown, it's Load event is raised.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
* "Brett Baisley" <bb******@nbnet.nb.ca.REMOVE> scripsit:
I am used to VB6 where frmMain.unload, frmNew.load worked.

What replaced this in vb.net?


\\\
Dim f As New Form1()
f.Show()
///

.... later:

\\\
f.Close()
///

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #3
In dot Net,form is an object.
It still have Load function,you can place codes in
there ,but it does not have an event called Unload.Instead
of that ,dot Net have an event which is called Disposed.
Nov 20 '05 #4
Awesome, Thanks guys!

"Brett Baisley" <bb******@nbnet.nb.ca.REMOVE> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I am used to VB6 where frmMain.unload, frmNew.load worked.

What replaced this in vb.net?

Nov 20 '05 #5

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

Similar topics

1
by: DB2 Novice | last post by:
Hi, What are the utils provided by IBM to fast load and unload DB2 in Unix and Windows env. I read about High Performance Unload and this is just Unload, waht about Load? What is the best way...
0
by: dlieu | last post by:
I've found an odd situation in where the Load event of the active form fires (after the Unload event) when Access is closed. I am able to reproduce this situation in Access 2002 SP3 and Access 2003...
2
by: Lauren Hines | last post by:
Hello, I have read numerous post stating that the only way to unload an assembly (DLL in my case) is to create a separate AppDomain, load the assembly, then unload it by calling AppDomain.Unload....
3
by: Daniel | last post by:
How do i dynamicaly load and unload a C# dll at runtime
2
by: brianbender | last post by:
I am trying to load and unload assemblies dynamically and call methods and properties when loaded into an Appdomain I can load assemblies all day in the current AppDomain without references and...
7
by: Michael Erlewine | last post by:
I am trying to learn VB.Net and can't figure out how to call a from from another form. In VB6, I just issue a Load FormX, and an Unload FormX... and Show the form and there it is. I am sure it...
7
by: tojigneshshah | last post by:
Hi, I am loading data from ascii delimiter file and some of the rows are getting rejected while loading. 1.0|11487.0|FQ|105061.0|332735.0|01|X.NNIE HATFIELD|1992-06-25 00:00:00|1992-...
6
by: Ronald S. Cook | last post by:
We have a Windows app that has one main form (a shell, sort of). We then load user controls into a panel on the form depending on what the user has selected. Our current code to unload the...
1
by: Ivan | last post by:
Hello, What I want to do is to create DLL that I can load and use and then unload when needed. What I mean by this is: After object released - dll file can be removed, etc. So, file won't be...
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
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,...
0
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...
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
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...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.