473,326 Members | 2,337 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,326 software developers and data experts.

Splash screens / loading & unloading forms

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 form?
This might be a nice idea, since I may want to have other forms load and
unload... how can I get forms to be loaded and unloaded at will from an
invisible master form, say, frmControl? Thanks in advance for any
suggestions!

-- Eric
Feb 20 '06 #1
3 3629
Eric,

This is what I do:-

Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

Me.Hide()

Dim splash As frmSplash

splash = New frmSplash

splash.Show()

splash.Update()

Thread.Sleep(2500)

splash.Close()

Me.Visible = True

End Sub

Cheers
Peter

"Eric A. Johnson" <no*****@dontlookforme.com> wrote in message
news:5r******************@newssvr14.news.prodigy.c om...
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 form? This might be a nice idea, since I may want to have
other forms load and unload... how can I get forms to be loaded and
unloaded at will from an invisible master form, say, frmControl? Thanks
in advance for any suggestions!

-- Eric

Feb 20 '06 #2
Eric,

There are probably thousand of ways to make a splash screen.

However the last thing you have to do is know to use the right instructions.
"Form.Load" is an event that fires as soon as a form start loading and will
not start showing a form. You get the instructions for that when you click
on your form.

Therefore I think it is better for you to just create your program and know
how that goes and than afterwards add a splash screen, something that is if
your program is OOP seldom a problem.

Just my thought,

Cor

Feb 20 '06 #3
Added sample to follow up message

Cor
Feb 21 '06 #4

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

Similar topics

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....
2
by: Bill | last post by:
Problem 1) Any ideas on how I would get a splash screen to appear for a certain amount of time when I open a database - it's to display a text based disclaimer message. I know about message...
5
by: Greg Smith | last post by:
I have some applications that are slow loading and some of my users keep clicking away until they see something. Can anybody point me to some examples of quick loading splash screens and tips on...
3
by: Glenn | last post by:
I am confused about when a form is unloaded, if ever. I have forms loading as MDI forms that have a withevents reference to a global class raising events. When the forms close, the closed event...
1
by: Jim Swarr | last post by:
I have a rather annoying issue with VB.net 2005 and Splash Screens. If I configure a Splash Screen from the Application Property tab, it works just as expected when the application is installed...
1
by: Albertas | last post by:
Hello, I have a Web Service that needs to send and receive data from running windows forms application every time when WS methods are called. My question is: What is the best way to do that? I'm...
0
by: mplands | last post by:
I have an access database that has two main elements; -Client Detail -Properties To expalin my problem as sussinctly as possible may be difficult but here i go... I have created a form called...
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 ...
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.