hi
how can i create a splash screen using NB.Net ?
it was easier using VB6 .:rolleyes:
Short summary tied to the thread: ’s screenshot shows the Splash Screen template is missing — that’s normal if the project is older (VB.NET in VS2003). and were pointing toward templates available in later VB versions; mentioned Sub Main/timers. For VS2003 a small manual pattern is the safest way: run a lightweight splash form first, do heavy startup work on a background thread, then close the splash and run the main form. This avoids freezing the UI and works across .NET versions.
Pattern overview (no polling or UI-thread Sleep): make a SplashForm that starts a background thread in its Load handler to perform initialization (load config, warm caches, open connections). When that thread finishes, marshal back to the UI thread and close the splash. Use a Sub Main that calls Application.Run(splash). After the splash closes, Sub Main continues and runs the main form.
Example (minimal, works in VS2003/VS2005):
' Module: Program.vb
Module Program
Sub Main()
Dim splash As New SplashForm()
Application.Run(splash) ' runs until splash.Close()
Dim mainForm As New MainForm()
Application.Run(mainForm)
End Sub
End Module
' In SplashForm.vb
Imports System.Threading
Public Class SplashForm
Private initThread As Thread
Private Sub SplashForm_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
initThread = New Thread(AddressOf DoInitialization)
initThread.IsBackground = True
initThread.Start()
End Sub
Private Sub DoInitialization()
' heavy startup work here (do NOT touch UI controls here)
Thread.Sleep(2000) ' placeholder for actual work
If Me.InvokeRequired Then Me.Invoke(New MethodInvoker(AddressOf CloseSplash)) Else CloseSplash()
End Sub
Private Sub CloseSplash()
Me.Close()
End Sub
End Class Quick troubleshooting and notes: set the project startup object to Sub Main (Project → Properties → Startup object), ensure the splash form’s Opacity, StartPosition, and TopMost aren’t hiding it, and watch the Output window for load-time exceptions. Avoid doing heavy work on the UI thread and avoid Application.DoEvents loops where possible. If upgrading to VB2005+ is an option, the language adds a built-in splash-screen workflow and templates that automate much of this.
Jump to Post— Sulley's Boo 490NB .NET = VB .NET?
http://www.devhood.com/Tutorials/tutorial_details.aspx?tutorial_id=406
I don't know if that will help or not but .. ahh i dont know .. good luck ..
:o
Jump to Post— waynespangler 63For VB 2005 try this:
http://www.codeproject.com/vb/net/vb2005ga.asp
Jump to Post— waynespangler 63You must be using vb 2003. Try this site, shows how to create a splash screen from scratch.
NB .NET = VB .NET?
http://www.devhood.com/Tutorials/tutorial_details.aspx?tutorial_id=406
I don't know if that will help or not but .. ahh i dont know .. good luck ..
:o
right click your project on the Solution Explorer window, click Add, New Item , look for Splash Screen in template window, give it a name and click Add button and your splash screen is ready for action. :)
You must be using vb 2003. Try this site, shows how to create a splash screen from scratch.
You will need to use a submain procedure. Create a splash screen form and create a timer event. Set the timer to how long you want the splash screen to stay visible. On you submain, set your splashscreen to open first and then yoru main form to open second. When the timer close the splash screen, the sub main will open your next form.
Please see this article for more information:
does not working:sad:
i have created all the program forms, but i need to add a splash form know..:?:
use the latest vb
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.