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

Loading Windows Forms


Is there a way to load a windows form into memory without showing it. You
used to be able to do this in the god old days.

TIA
--
Helen
Nov 21 '05 #1
6 1154

Dim MyForm as New MyFormClass

(it's hidden until you either:)

MyForm.Show
MyForm.ShowDialog
"Helen Trim" <He*******@discussions.microsoft.com> wrote in message
news:F5**********************************@microsof t.com...

Is there a way to load a windows form into memory without showing it. You
used to be able to do this in the god old days.

TIA
--
Helen

Nov 21 '05 #2
Robin,
Dim MyForm as New MyFormClass

(it's hidden until you either:)

MyForm.Show
MyForm.ShowDialog


You probably mean to make a module with a sub main in it with this code?

Cor

Nov 21 '05 #3
Cor,

"Cor Ligthert [MVP]" <no************@planet.nl> schrieb:
Dim MyForm as New MyFormClass

(it's hidden until you either:)

MyForm.Show
MyForm.ShowDialog


You probably mean to make a module with a sub main in it with this code?


It doesn't really matter where you place the code... :-).

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #4
Herfried,
It doesn't really matter where you place the code... :-).


What you think of this

Private sub MyFormClass_load etc

Dim MyForm as New MyFormClass
(it's hidden until you either:)
MyForm.Show
MyForm.ShowDialog

End Sub

What is in your opinion the effect?

Cor

Nov 21 '05 #5
Cor,

"Cor Ligthert [MVP]" <no************@planet.nl> schrieb:
It doesn't really matter where you place the code... :-).


What you think of this

Private sub MyFormClass_load etc

Dim MyForm as New MyFormClass
(it's hidden until you either:)
MyForm.Show
MyForm.ShowDialog

End Sub

What is in your opinion the effect?


Well, you are creating a new instance of a certain form type. If creating
the instance is a costly process, this can be performed when the application
is idle to accelerate showing the form later.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #6
Herfried,
It doesn't really matter where you place the code... :-).


What you think of this


Well, you are creating a new instance of a certain form type. If creating
the instance is a costly process, this can be performed when the
application is idle to accelerate showing the form later.

I mean in combination with your reply to me, you probably don't believe it,
however I know what the code I showed does. However it will show (three)
forms when the load event is done.

:-)

Cor
Nov 21 '05 #7

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

Similar topics

1
by: Novice | last post by:
I'm afraid I will incur the wraith of Mr. Powell on this one - but I did read his #1 FAQ and some others and I still can't figure this out. I created this little c# app. and I have a PictureBox...
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...
17
by: Joshua Kendall | last post by:
I have a splash screen that is set to a timer. When the timer reaches it's Interval of 1000, I want it to load the next form in my project. My brother knows VB6 from school but can't figure out...
3
by: Joshua Kendall | last post by:
I need to know the code to load another form. In vb6 it's simply "load" what is it in dotnet? Anyway here's my code: Public Class Splash Inherits System.Windows.Forms.Form #Region "...
10
by: lsharva | last post by:
i m Developing a Software application where the windows forms are used . i want a starting Window where user don't have to do anything as it loads the Windows Forms, the forms are taking more time...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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...

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.