Hello, I want a source code which will help me to create the splash screen with the help of c# programming language. Please, send me source code which can be helpful to me.
Hello, I want a source code which will help me to create the splash screen with the help of c# programming language. Please, send me source code which can be helpful to me.
Hi, you can use following source code to create the splash screen in c# programming language.
In the load method for form use this code to control the splash screen:
Code:private void splashscreen_Load(object sender, System.EventArgs e) { frmSplashScreen SplashScreen = new frmSplashScreen(); SplashScreen.Show() SplashScreen.lblStatus.Text = "Message to be displayed"; SplashScreen.lblStatus.Refresh(); SplashScreen.Close() }
Hi, I don't know how to make splash screen code in c#. But one of the book I am using I am sending you this code. Just use it.
Code:using System; using System.Windows.Forms; using Microsoft.VisualBasic.ApplicationServices; namespace WindowsApplication1 { static class Program { static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); new MyApp().Run(args); } } public class App : WindowsFormsApplicationBase { protected override void OnCreateSplashScreen() { this.SplashScreen = new Form(); } protected override void OnCreateMainForm() { System.Threading.Thread.Sleep(5000); this.MainForm = new Form1(); } } }
Hi, I don't know whether it is right or wrong but I think this would work to make splash screen with the help of c#. Just check it whether it is working or not, as I am beginner in c#.
Code:private void Splashscreenform_Load(object sender, EventArgs e) { Splashscreenform Splash = new Splashscreenform(); Splash.Show(); Thread.Sleep(3000); Splash.Close(); }
Bookmarks