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
{
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