Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 24-11-2009
Member
 
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.
Reply With Quote
  #2  
Old 24-11-2009
Member
 
Join Date: May 2008
Posts: 2,293
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()
}
Reply With Quote
  #3  
Old 24-11-2009
Member
 
Join Date: Oct 2005
Posts: 2,389
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();
}
}
}
Reply With Quote
  #4  
Old 24-11-2009
Member
 
Join Date: Feb 2008
Posts: 1,848
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(); 
}
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 01:37 PM.