[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

Splash screen while .NET Framework loads

I have a managed C++ application. As we know - The JIT step takes a long time when the application is first loaded. Is there anyway to show the user a splash screen during that time?
I was thinking to create another, not-managed, exe that will show the splash screen and launch the managed (.NET) application. I would like to ask for a .NET expert opinion about my idea. Is there a more elegant way to avoid my users staring at an empty screen?
0
ronron771
Asked:
ronron771
  • 2
2 Solutions
 
iboutchkineCommented:
if you ar eusing VS2005

To add a splash screen template
Select a project in Solution Explorer, and then on the Project menu, click Add New Item.

In the Add New Item dialog box, select the Splash Screen template, and then click Add. The template
 is added to your project.

To specify a splash screen
Select a project in Solution Explorer, and then on the Project menu, click Properties.

Click the Application tab.

Under Windows application framework properties, in the Splash screen: list, click the form
0
 
Alexandre SimõesManager / Technology SpecialistCommented:
Hi...

You mean you want to have the splash right after the exe is clicked to run right?
Framework can take a couple of seconds to run on some machines.

1st- I don't think it worths the effort.
You can show the splash normally and it will show not intantly but will take a couple of seconds max.

2nd. On really slow machines you could experience errors like the user trying to run the application again while one process is already started.
On these cases you have other ways to prevent multiple instances of the same app.

3rd. You're right, if there's a worthy way, the splash must be unmanaged and then you'll have to sync 2 objects one managed and other unmanaged.

Think about that...
How much time does it take now to run?
Did you tried a simple splash screen usage?

Alex :p
0
 
Alexandre SimõesManager / Technology SpecialistCommented:
Ok to me...

Alex :p
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now