Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Create a Splash Screen in a Windows App?
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00856487
Message ID:
00856620
Views:
15
Alan,

>I'm still finding my way around this MM.Net framework and I'm trying to create a splash screen that will display for a couple of seconds when the app starts up. I would like to use app.config to store some values like the App name, version number and company name. Problem is, It appears that the AppSettingsMgr is not instantiated in time to use it before the mainform comes up. Where is the best place to launch my splash screen and where is the best place to store the settings?

Actually, the App Settings Manager is instantiated the first time you reference it as shown by the following property code. This means you can store the settings you need in the app.config file.
public static mmAppSettingsManager AppSettingsMgr
{
	get 
	{ 
		// Instantiate the App Settings Manager if it's null
		if (_appSettingsMgr == null)
		{
			_appSettingsMgr = Factory.CreateAppSettingsManager();
		}
		return _appSettingsMgr; 
	}
	set { _appSettingsMgr = value; }
}
There are any number of places you can choose to display the form, but you may want to do it in your Main.cs (or Main.vb file) after the line of code that instantiates the Application object:
App = new AppDesktop();
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform