473,770 Members | 1,629 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to create a startup screen for a program?

Is there a specified method to do that?

Thx
Jeroen
Nov 15 '05 #1
3 4028
Hi,

No really but there are several techniques for this, do a google search for
"splash screen" :
http://groups.google.com/groups?hl=e...ublic.dotnet.*

Basically it's a normal form without borders that is shown while your main
form is loaded, this is from a post of this NG a while ago:

private SplashScreen splash;
public Form1()
{
splash = new SplashScreen();
splash.Show();
Application.DoE vents();
...
}

private void Form1_Load(obje ct sender, System.EventArg s e)
{
// Do load work.
splash.Dispose( );
}

The call to DoEvents() is of the most importance.

Hope this help,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Jeroen Ceuppens" <je************ *@barco.com> wrote in message
news:%2******** *******@tk2msft ngp13.phx.gbl.. .
Is there a specified method to do that?

Thx
Jeroen

Nov 15 '05 #2
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT dot.state.fl.us > wrote
in message news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Basically it's a normal form without borders that is shown while your main
form is loaded, this is from a post of this NG a while ago:

private SplashScreen splash;
public Form1()
{
splash = new SplashScreen();
splash.Show();
Application.DoE vents();
...
}


Just another point to add...

If you're debugging you don't want the splash window to get in your way
while single stepping etc.

_SplashForm = new SplashForm();
#if DEBUG
// We don't want the Splash form in the way while in the debugger.
_SplashForm.Top Most = false;
#endif
_SplashForm.Sho w();
System.Windows. Forms.Applicati on.DoEvents();

-- Alan
Nov 15 '05 #3
Hi Alan,

Yes, this is VERY Important !!!!

Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Alan Pretre" <no@spam> wrote in message
news:uX******** ******@TK2MSFTN GP12.phx.gbl...
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.mach in AT dot.state.fl.us > wrote in message news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Basically it's a normal form without borders that is shown while your main form is loaded, this is from a post of this NG a while ago:

private SplashScreen splash;
public Form1()
{
splash = new SplashScreen();
splash.Show();
Application.DoE vents();
...
}


Just another point to add...

If you're debugging you don't want the splash window to get in your way
while single stepping etc.

_SplashForm = new SplashForm();
#if DEBUG
// We don't want the Splash form in the way while in the debugger.
_SplashForm.Top Most = false;
#endif
_SplashForm.Sho w();
System.Windows. Forms.Applicati on.DoEvents();

-- Alan

Nov 15 '05 #4

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

Similar topics

2
2428
by: DJMonte | last post by:
I have a C# program that is scheduled to run at system startup. When a user logs into the machine, how can I show a status screen of the running application? I tried with a NotifyIcon but the icon does not show in the tray.
8
1429
by: ZhangZQ | last post by:
How to make the Windows to run a console program during OS startup, like the Chkdsk program to do when the OS does not shutdown properly? Now I want to run my program instead of Chkdsk during the OS startup, is there a way to do that? Thank you very much! Regards,
0
1211
by: Sim Zacks | last post by:
I reconfigured the redhat startup script for postgresql to work with version 8 and that is working fine. I thought I could put autovacuum in the startup script and that didn't cause any problems, but it didn't turn on and I had to start it manually. Does anyone know why it didn't catch? I was watching the bootup and it seemed that the program was actually called. (a screen flew by my eyes very quickly but since it was the last thing, I...
9
2988
by: jeff | last post by:
Hi All. I realize that when my Deployed winforms application starts, Windows needs to load the .net 2 framework before control is given to my application.... Is there anyway to either ... - preload the .net 2 framework (windows startup or whatever) - splash a screen ... application loading ... please wait ... type of
10
22378
by: =?Utf-8?B?UmljaGFyZCBCeXNvdXRo?= | last post by:
Hi In my app I have a SplashScreen, a login form and a main form. On launching the app, I'd like to show the SplashScreen while reading config files and attempting a database connection. I show progress of these tasks on a label on the SplashScreen form. Once this is completed ok, the splash screen should close and the login form should be displayed. A successful login closes that form and shows the main form.
8
1129
by: Rob | last post by:
In VS2003 you had the option to select "Sub Main" as the Startup Object It appears this option is not present in VS2005... Is this the case ? Thanks !
4
1158
nev
by: nev | last post by:
i would like the startup form to display after the splash screen is finished. i have set everything using the project properties menu as... startup form --> mdiparent splashscreen --> splashscreen when i run the program, both those forms are displayed at once. i would like my mdi to display after splash goes away.
3
2329
by: Joe Duchtel | last post by:
Hello - I would like to create an application that starts up upon login (e.g. Startup folder) and then waits for the Alt+Print Screen button to be pushed. I still want this button to put a screenshot onto the clipboard but I also want to execute some other code I wrote to automatically save this *.bmp as a (smaller) *.png. Currently, I take a screenshot and then run the executable to do that. Any suggestions?
6
1410
by: John Wright | last post by:
During my program startup I need to check for a couple of things. 1. I need to check for network availability 2. I need to check for database connectivity 3. I need to check for access to the server via a webservice I have written the code to do all of these things. Now I want to put them into a startup form. I want to load my main form, but from the main form I want to call a splash screen with an animation on it that will cycle...
0
9432
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10232
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10008
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9873
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8891
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5454
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3974
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3578
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2822
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.