Make Splash Screen Go Away After 5 Seconds And Load Another Form?
Jul 15, 2010
I have created a splash screen and would like it to display for 5 seconds and then display the MainMenu form. The book I am following suggested using
Threading.Thread.Sleep(5000)
but it just makes the splash screen APPEAR after 5 seconds of nothing.
View 21 Replies
ADVERTISEMENT
Dec 20, 2009
I'm coding a splash screen in VB.Net that displays for 3 seconds then shows a login screen. But the splash shows up even when login shows and I have told the splash to hide. Here is my code:
[code]...
View 3 Replies
Apr 7, 2011
Is there a way to load the data for my form during the splash screen and simply show the form when the user clicks on the button? I'm using a thread which fills my DataAdapter using Form.DataAdapter.Fill(Form.Dataset.Table), but when I open the form the data isn't shown (I removed the line from my form_load event to prevent a double load). Is there anyway to tell the form that the DataAdapter has been filled already and to look at the information there instead of loading the data everytime the form loads?
My problem is that the form takes a while to load due to the amount of data it is looking for. If I could already have the data ready and then display the form when the user clicks a button it'd be perfect. I apologize if I'm missing something, this is my first time diving into VB.Net with VS2010 after using Access VBA for awhile.
View 2 Replies
Jul 2, 2010
I would like to display my splash screen for a set amount of time (5 seconds). While the splash screen is displayed, I added code to the load function to determine which form to load next. I have the splash screen selected in the Application Properties settings. I also have to select a "Startup form:" in the Application Properties settings.
I'm having a couple of problems. First, the form selected in the "Startup form:" is loaded and displayed along with the splash screen.Next, the form I select in the splash screen load is not started. Only the "Startup form:" is loaded.
View 2 Replies
Jul 5, 2009
Let's say I want to put a 10 second delay on my splash screen before loading the next form or app.I use a timer, but would it be a simple integer value or several different lines of code?
View 3 Replies
Oct 9, 2010
How do I make a splash screen with a progressbar that value changes base on the MainForm_load event? Example:When the mainform finished executing part of mainform_load, the progress bar in the splash screen changes to X value (eg 50)When mainform_load is executed completely, the progress bar moves to 100%, the splashscreen closes and mainform opens.
View 1 Replies
Oct 12, 2011
I'm making a splash screen and i want it to go after 5 seconds? what is the script for waiting?
View 3 Replies
Jan 25, 2011
To create splash screen before InitializeComponent, the WithEvents statement for the BackgroundWorker component needs to be moved from the Form's Designer.vb file into the constructor as indicated in the first commented lines of the constructor below.
[Code]...
View 19 Replies
Nov 26, 2009
i want to show a splash screen for 5 seconds before my login but the code i am using is giving problems.. i have tried to fix but is still not working.it is asking for comman somewhere... how can i fix it
Protected Overrides Function OnInitialize(ByVal commandLineArgs As System.Collections.ObjectModel.ReadOnlyCollection(Of String)As Boolean)
Me.MinimumSplashScreenDisplayTime = 5000
Return MyBase.OnInitialize(commandLineArgs)
End Function
View 2 Replies
Aug 20, 2011
was trying to make a splash screen using a form (so that it fades in and out) however i cant get it to stop for the person to read it (at least for 5 seconds) this is the code
Public Class Form1 Private increase As Boolean = True Dim time As Integer Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code]...
View 19 Replies
Aug 12, 2009
How do I make it so that when the program starts it shows splash, then the splash screen closes after 5 seconds and opens Form1.vb?
View 6 Replies
Aug 15, 2011
load another form and i want a progress bar to work with it.
View 19 Replies
Jan 28, 2011
I'm looking for some advice on a very simple application which should consist of 2 parts:The application should display a splash screen for 5 seconds Before the splash screen displays, the program should execute code which sets some Environment Variables and then starts another EXE after which this application should terminate. As a complete novice to VB.Net I've been reading countless articles & examples on splash screens but they all seem geared towards a solution which will load a further form after the splash screen or contain snippets of code that I have no idea how or where to use. On my app however, I don't want any further form to be visible so can someone please advise the steps to follow that will achieve what I am looking for.
The following code Forum Account kindly converted that sets the environment variables and starts another EXE
View 10 Replies
Jul 19, 2007
OK, here is the problem....When I load my application I am using the application loading events in VB.NET 2005...The problem is that the module events will sometimes cause msgbox errors, etc..
View 7 Replies
May 31, 2011
I have an MDI parent screen that loads on startup and a lot of child forms that load when opening. So as the child forms load there's a lot of flashing and it looks really ugly. Once they're loaded all I have to do is use a bring to front, maximized command and it works smoother than closing a form and opening a new one every time a different form is selected. I've tried creating a splash screen, minimizing the forms on load, etc and everything still works in order so first the splash screen then the forms load.
How would you set it up so a splash screen stays on top of all other forms for like 5 seconds while the forms load in the background without seeing them load? Right now the screen shows then when it's done it moves on to step 2 which is loading the child forms. If no splash screen, how do I make it load so you don't see all the child forms opening at once?
View 3 Replies
Feb 15, 2012
I'm making a fading splash screen for a software but I can't seem to make the splash screen fade in and then fade out. It only fades in, fades out a bit then stop.
Here's my code.
Private Sub frmSplashScreen_Load(sender As Object, e As System.EventArgs) Handles Me.Load
Opacity = 0.0
SplashScreenTimer.Start()
End Sub
[Code] .....
View 5 Replies
Jul 20, 2009
I used the thing where u go to properties and select a splash screen but how do i make it longer?
View 5 Replies
Oct 12, 2010
Can I make a certian function that will fade out [make a black screen that fades out for 2 seconds], then come back? Is that possible? ON A FORM.
View 3 Replies
Nov 6, 2009
I need to know how too make the background color on my splash screen because i need it round or fading out into whats on the persons screen.
View 4 Replies
Mar 23, 2011
I am creating a web browser as a school project. One feature I hope to include involves a splash screen check the state of a Boolean (True/False) at launch and then open the appropriate form. I know that I will need an 'If' statement in the code of a splash screen but I am not sure how I would go about making it do this.
View 4 Replies
Jun 21, 2010
While my program loading, I have a splash screen. After the program is done loading my Splash-screen closes and the main form (form1) shows (all good up to that point). But the problem is after the Splash-screen I cannot close form 1, nor can I move it. here is what have.
[Code]...
View 6 Replies
Dec 7, 2009
I'm writing a small app which I want to display a splash screen. The problem is my form 1 is appearing before the splash screen disappears. In fact is appears on startup blocking the splash screen. I have some code in form_load and have managed to figure out which line is causing the error, but I cant figure out why or how to prevent it.
The line reads
LoadSettings()
If I comment out this line everything runs fine and there's nothing in that sub that should affect form1. I'm doing this in vb express 2010.
Here's the code for my form_load:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
LoadSettings() ' this line is causing the problem
My.Application.MinimumSplashScreenDisplayTime = intSSDelay * 1000
'resolution check
[Code] .....
View 5 Replies
Nov 27, 2009
I am experiencing an annoying problem with my second for when it opens. Here is the code :
If
My.Settings.NoSplash Then
Me.Hide()
[Code].....
None of these makes any difference. If issue a Close() on form1, the entire program closes and not just form1. Is there a property I need to tweak or set on either of the forms to stop/fix this?
What I am trying to do is show a splash screen then the next form. I have given them the option to "skip" the splash screen if they don't want to see it any longer and this is where I am having the problem.
View 3 Replies
Jan 14, 2010
Hello.. I'm using a splash screen for the first time in an exercise. I have it set up to display the splash screen before going to the main form. I made changes to the splash screen title and copyright information. When I execute the program, the splash screen comes up but it's not displaying the information I changed. When I view the splash screen the changes are saved. It displays the project name where the application name should be.
View 18 Replies
Oct 7, 2009
i have created a splash screen by removing form border and importing an image to the picture box. also i have set a timer for 7 sec after which the splash screen will close itself and will open the MDI form. But after seven second altough the splash screen closes but it also closes the MDI form too. I am not able to figure out the problem.
Form1.vb
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code].....
View 2 Replies
May 11, 2011
Namespace My
Partial Friend Class MyApplication
Protected Overrides Function OnInitialize(
[code].....
View 5 Replies
Feb 16, 2012
My main form shows at the same time as my splash screen.
ApplicationEvents.vb:
Partial Friend Class MyApplication
Protected Overrides Function OnInitialize( _[code]....
View 1 Replies
Dec 18, 2009
Im trying make my application display my splash screen for 5secs before loading my main form. I have read lots of threads on this and they all seem to point to the following:Add the following code to the New() sub of the splashscreen.
My.Application.MinimumSplashScreenDisplayTime = 5000
I have also seen a suggestion to add the following code to the OnInitilalize event in the ApplicationsEvents file.
Me.MinimumSplashScreenDisplayTime = 5000
I've have tried both ways, and although it successfully makes my splashscreen wait 5 seconds before closing, it doesnt prevent the Main form from waiting for the splashscreen to close before loading. The mainform simply loads over the top of the splashscreen.This thread is exactly what im after but i cant seem to get mine to work.
[URL]
I have application framework enabled. I have my startup form set to my main form, and i have set my splashscreen in the application tab of my project properties. Im using VS2008.I also noticed that when i clicked on the "View Application Events" button in the application tab of my project properties, the file was blank. I have seen that some other people have had problems with this. I just cut and paste the following code into my ApplicationEvents file. Potentially an issue??? Any reason why the code was not auto-generated to begin with?
Namespace My
' The following events are availble for MyApplication:
'
' Startup: Raised when the application starts, before the startup form is created.
[code]....
View 4 Replies
Feb 9, 2012
I have a Windows Form Application to which I added a splash screen created using the splash screen template. I also added an MDI Parent Form. In my project properties, I chose the splash screen and the MDI Parent as the loading form.
I want the MDI Parent to load Maximized, so I changed the WindowState Property in the list to do just that. Now here is the problem:
If I leave the WindowState set to Normal, the splash screen loads, does its thing, closes, then loads my MDI Parent just like it is supposed to, BUT, if I set the WindowState of the MDI Parent to Maximized, the splash screen displays for about a second, the MDI Parent loads on top of the splash screen, and the splash screen finishes in the background and then closes.
I tried giving Focus back to the splash screen in the Lost Focus event but that didn't work. I know splash screen is still open and working when it gets covered up because I can hit ALT+TAB and see it just before it closes on its own like its supposed to. I also never adjusted any of it's time settings or any other settings.
How do I keep the splash screen on top while my MDI form is Maximized? or how do I delay the MDI until the splash screen has done its job? I dont understand why I am getting this result.
View 3 Replies
Apr 29, 2011
I have my start up form in maximized window state, but this cause the splash screen appear behind the startup form, which cause it cannot be seen.Even i have set the time longer to display the splash screen.It still do now work. I have tried below code in the start up form but it is not working...
Private Sub Main_Shown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shown
Me.WindowState = FormWindowState.Maximized
End Sub
View 2 Replies