Results 1 to 4 of 4

Thread: Splash Scree code in C#

  1. #1
    Join Date
    May 2008
    Posts
    95

    Splash Scree code in C#

    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.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: Splash Scree code in C#

    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()
    }

  3. #3
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Splash Scree code in C#

    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();
    }
    }
    }

  4. #4
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Splash Scree code in C#

    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(); 
    }

Similar Threads

  1. AMD Phenom II X4 showing on MSI 870-G45 splash but with only 2 cores
    By $Iain$ in forum Motherboard Processor & RAM
    Replies: 7
    Last Post: 19-03-2012, 11:26 AM
  2. Splash smash up on Brink –don’t do this
    By Takhbir in forum Video Games
    Replies: 6
    Last Post: 03-07-2011, 07:39 PM
  3. Splash screen in windows phone 7
    By FFCookie in forum Portable Devices
    Replies: 4
    Last Post: 26-10-2010, 10:24 PM
  4. How to create a Splash Screen in Java?
    By DANIEL 602 in forum Software Development
    Replies: 4
    Last Post: 16-02-2010, 03:35 AM
  5. How to block the splash screen of Antivir 9?
    By harakim in forum Networking & Security
    Replies: 3
    Last Post: 02-05-2009, 06:07 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,941,505.27171 seconds with 16 queries