|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
About Splash Screen form settingHi!
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 (specified in same place) causes error when it is loading and it cannot open database connection for example? Now error message will be below Splash Screen form, and it causes problem how to read error message and close it. -- Thanks in advance! Mika Mika M wrote:
Show quoteHide quote > Hi! Good question! I had trouble with the SplashScreen too. Never did> > 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 (specified in same place) causes > error when it is loading and it cannot open database connection for > example? > > Now error message will be below Splash Screen form, and it causes > problem how to read error message and close it. > > -- > Thanks in advance! > > Mika figure it out. :( sorry. Instead, I launch a form (from my sub Main) at startup with no form borders and a splash image. I close it when I need to and display loading/db connection status in it programatically from Sub Main. In my My.MyApplication.MyApplication_Startup routine, I call the Me.HideSplashScreen()
method just before displaying the error. It seems to work just fine. I also set the event handler's e.Cancel property to True, but you are probably already doing that. ----- Tim Patrick - www.timaki.com Start-to-Finish Visual Basic 2005 Show quoteHide quote > 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 (specified in same place) > causes error when it is loading and it cannot open database connection > for example? > > Now error message will be below Splash Screen form, and it causes > problem how to read error message and close it. > > -- > Thanks in advance! > Mika >
dim x as something
Error calling unmanaged DLL 11th hour failure to trigger click event for object in hash table Connected App (VB2005) Help... Problems with settings. Nullable types and datareader... Input data to website Creating databases from VB2005 Express or VB2005 Measre Distance using the PostCode Form Upload Test Utility? |
|||||||||||||||||||||||