473,396 Members | 1,852 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.

How to show form after Splash Screen closes

Ok, this should be really, really easy ... but I can't figure it out.

My project is set to load frmSplash first, which runs some housekeeping stuff.
When that finishes, I want to open frmMain. This code DOESN'T WORK ...

Me.Close()
gfrmMain = New frmMain
gfrmMain.Show
the object variable, gfrmMain is declared in a public module.
Public gfrmMain As frmMain
The form loads ... flashes and dissappears when frmSplash is closed. If I set
frmSplash Not Visible, then the form remains, so clearly it's a scope issue. I
thought that if the variable is declared as a public frmMain, in a public module,
it would remain after frmSplash is closed ... but it doesn't

How can I accomplish this:
Open frmSplash
Run housekeeping code
Close frmSplash
Open frmMain

Thanks in advance for any suggestions you may have
--

Danny J. Lesandrini
dl*********@hotmail.com
http://amazecreations.com/datafast/
Nov 20 '05 #1
4 6756
Hi Danny,

If you start your splash form from your main form it becomes suddenly much
more easy.

In the load event of your main form

dim frmSplash as FormSplash
frmSplash.show

When you than use a timer to close that frmplash.close or when the timer is
in the splash form me.close, than your proces can go on while your splash
form is showed. Do you want a dialog form than is better

dim frmDial as FormDial
frm.Dial.showdialog
myvariables = frmDial.aPublicProperty or variable
frm.Dialdispose

I hope this helps?

Cor
Nov 20 '05 #2
Hi Danny,

If you start your splash form from your main form it becomes suddenly much
more easy.

In the load event of your main form

dim frmSplash as FormSplash
frmSplash.show

When you than use a timer to close that frmplash.close or when the timer is
in the splash form me.close, than your proces can go on while your splash
form is showed. Do you want a dialog form than is better

dim frmDial as FormDial
frm.Dial.showdialog
myvariables = frmDial.aPublicProperty or variable
frm.Dialdispose

I hope this helps?

Cor
Nov 20 '05 #3
* "Danny J. Lesandrini" <dl*********@hotmail.com> scripsit:
Ok, this should be really, really easy ... but I can't figure it out.


That's no reason for multiposting.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4
* "Danny J. Lesandrini" <dl*********@hotmail.com> scripsit:
Ok, this should be really, really easy ... but I can't figure it out.


That's no reason for multiposting.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #5

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

Similar topics

3
by: Danny J. Lesandrini | last post by:
Ok, this should be really, really easy ... but I can't figure it out. My project is set to load frmSplash first, which runs some housekeeping stuff. When that finishes, I want to open frmMain. ...
6
by: Daniel Kaseman | last post by:
Why won't this work? Dim frm As New Form1() Me.Close() frm.Show() HELP!
7
by: Bob | last post by:
I have a winforms app written in Vs2005 Vb.Net, The setiings are to Enable the application Framework and I defined a splashform. Works fine if no errors occur. I do a checking on the mainform load...
5
by: steve | last post by:
Hi All I have a form set as the splash screen in VB.net 2005 application properties How can I tell when it has or is closing, as I want to then run some licence checking code without the...
4
by: DBC User | last post by:
Hi, I have windows form program. While that form is building to show, I want to show another window (kinda splash screen so I can show the user the program is loading..) Can someone suggest a...
3
by: steven | last post by:
Hello, As anyone knows, before starting up a .Net application, parts of the ..Net framework must be loaded in memory. Therefore, starting this application can last for quite a few seconds...
2
by: Mika M | last post by:
Hi! My Windows Forms VB 2005 application has Splash Screen form specified in My Project/Application/Splash Screen. How can I close Splash Screen form programmatically when Startup form...
3
nev
by: nev | last post by:
i have included a splash using the properties option. the problem is i think my splash still loads but my startup form shows also. i would like to do something like... if splash finished...
4
by: Gaz | last post by:
I am having a bit of a problem getting my application to work properly. RIght here is my problem... WHen my C# windows app loads up the start form, i create a new thread and show the splash...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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
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.