473,394 Members | 1,956 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,394 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 6755
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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...

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.