Main Form Shows At The Same Time As Splash Screen?
Feb 16, 2012My main form shows at the same time as my splash screen.
ApplicationEvents.vb:
Partial Friend Class MyApplication
Protected Overrides Function OnInitialize( _[code]....
My main form shows at the same time as my splash screen.
ApplicationEvents.vb:
Partial Friend Class MyApplication
Protected Overrides Function OnInitialize( _[code]....
I have a splash screen, the default from Visual studio. It loads up, is shown for a few seconds, then, when it disappears, the main form is loaded. Now here is the problem: the main form appears in the back, behind the windows explorer window I load the application from.
The weird thing is that this only happens on some computers, particularly Windows XP machines.I tried a lot of things like BringToFront() or TopMost = true in the on Load event of the form but nothing seems to change this.
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 RepliesNamespace My
Partial Friend Class MyApplication
Protected Overrides Function OnInitialize(
[code].....
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]....
I am using the following code in the 'Application.Designer.vb' to set one of the two forms as the the mainform for my splash screen.The global string array gSetupStr(0,1) only produces a correct result when any Msgbox is inserted before the 'If' statement.However,I do not want the Msgbox during a splash screen, but do want to control the mainform. [code]
View 1 RepliesI'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]...
I have a splash form that opens in the following Sub of the main form of the app[code]...
The Splash Form opens and closes fine, but no controls (a text box and a graphic, on a panel) appear on the form. I knew I was probably missing something (this was far easier than anything I found searching), but at least the form opens and closes. The app actually starts with a SubMain, which is only used to control how it opens with it's registered file type.
I made this splash screen and since I just started working on my project, the app takes less than two seconds to load and the time for splash screen is not enough? I have tried to put System.Threading.Thread.Sleep(5000)but where? I put it in the code of the splash screen, then it waits 5 seconds before showing the splashscreen and I put it in the main program, then the splash screen is out THEN it waits 5 seconds after the splash screen is gone then it loads.
View 17 RepliesHow to make the splash screen to have a time before to open Form1?
View 1 RepliesI am creating a splash screen for my vb.net 2005 app (.net 2.0 framework). I would like to include the build date and time on the screen without having to manually enter it myself everytime I do a release.
View 1 RepliesI have made quite a nice and tidy little game. Its based around space invaders and works quite well. however because i have finished my college project almost 2 weeks ahead of the assignments release date, my tutor has asked me to tweak my project and make it better.So far i have added a full main menu to the game and a full splash screen. I would like to add in a section for recorded high scores but have no idea how to attempt this at all.
View 3 RepliesWhile 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]...
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] .....
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]...
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.
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.
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.
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].....
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 RepliesI 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.
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.
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
I've tried adding a splash screen ]...to one of my applications and after exploring a while I somehow managed to get it working what bugs me now is that my splash screen is in fact a image inside a picture box and the form always shows the control color behind so what I tried is adding the form color to the transparency key this worked, somehow now, I use a png image that has some transparent effect also what I've noticed is that where I would want to show the transparent effect from the image the transparent color that is set in the forum shows below is the image to get my point of view:
I'm wondering if I can remove that "pink" color (set by me in the forum) from the image .I want to get a effect like the one Adobe products have for example
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]...
I have an application that contains a MDI Form as the main screen. In the text field of the form, I am trying to display the version of the application using the following syntax:[code]Using the above code, it always looks like 1.0.0.0 when in reality I'm on version 1.0.0.6. What am I doing wrong?
View 11 RepliesI've created a windows form application in vb 2010. I've got all my forms complete and now want to add a Login screen. One the login screen, after the username/password is entered and OK is pressed, I try to open the a connection string. Obviously if the connection fails, the user has entered the incorrect credentials. If the credentials are ok, True is returned and I then open up the Main form that shows the correct items for the logged in user.
[Code]...
I've got a project that generates a sql query and returns the results. I want to place a time/counter on the form that shows how long it takes to return the query from the server. Basically to count up in seconds from 0 while that sub is executing. Would threading be the best way to do this or is there another way that I'm missing?
View 2 RepliesI'm trying to make a progressbar that shows the load time of the next form.I've tried alot of different ways to do it, but it and the speed is always the same whether the next form loads faster or slower.I'm not sure what variables to use or anything.
View 3 RepliesMy app works fine on the development machine and 3 other machines. However, some machines just show the main login box and then fail to show the main screen. There is no error message. I installed VS 2008 express on on of such machines and when i compile the project, the following errors appear:
Type 'Microsoft.Office.Interop.Access.Application' is not defined.
Type 'dao.DBEngine' is not defined.
[CODE]..........................