Click here to Skip to main content
15,907,392 members
Home / Discussions / C#
   

C#

 
GeneralRe: Creating a new user control using decorator pattern Pin
Luc Pattyn18-Jun-10 11:58
sitebuilderLuc Pattyn18-Jun-10 11:58 
GeneralRe: Creating a new user control using decorator pattern Pin
T M Gray18-Jun-10 11:41
T M Gray18-Jun-10 11:41 
GeneralRe: Creating a new user control using decorator pattern Pin
Berlus18-Jun-10 12:17
Berlus18-Jun-10 12:17 
Questionalways visible splash screen Pin
Jassim Rahma18-Jun-10 6:54
Jassim Rahma18-Jun-10 6:54 
AnswerRe: always visible splash screen Pin
Henry Minute18-Jun-10 7:11
Henry Minute18-Jun-10 7:11 
GeneralRe: always visible splash screen Pin
Luc Pattyn18-Jun-10 8:18
sitebuilderLuc Pattyn18-Jun-10 8:18 
GeneralRe: always visible splash screen Pin
Henry Minute18-Jun-10 8:20
Henry Minute18-Jun-10 8:20 
AnswerRe: always visible splash screen Pin
Muammar©18-Jun-10 8:06
Muammar©18-Jun-10 8:06 
Here:
public partial class Splash : Form
    {

        private void Splash_Load(object sender, EventArgs e)
        {
            tmrWasteTime.Start();
        }
        
        private void tmrFader_Tick(object sender, EventArgs e)
        {
            if(this.Opacity >0.01)
                this.Opacity = this.Opacity - 0.03;
            else
                kill_tmrFader();
        }

        Form1 form1;
        private void kill_tmrFader()
        {
            tmrFader.Stop();
            form1 = new Form1();
            this.Hide();
        }

        int waste;
        private void tmrWasteTime_Tick(object sender, EventArgs e)
        {
            if (waste < 2)
                waste++;
            else
                kill_tmrWasteTime();

        }

        private void kill_tmrWasteTime()
        {
            tmrWasteTime.Stop();
            tmrFader.Start();
        }

    }


In this, example, you realize I'm using some components like timers, you can modify it to fit your needs, however, make sure you call the Splash in this example from your Program.cs and modify form1 here to your called form.

Cheers.
Muammar.

modified on Friday, June 18, 2010 2:15 PM

Questiondetermine sql server 2008 express size Pin
Jassim Rahma18-Jun-10 6:12
Jassim Rahma18-Jun-10 6:12 
AnswerRe: determine sql server 2008 express size Pin
dan!sh 18-Jun-10 6:24
professional dan!sh 18-Jun-10 6:24 
AnswerRe: determine sql server 2008 express size Pin
Henry Minute18-Jun-10 7:13
Henry Minute18-Jun-10 7:13 
GeneralRe: determine sql server 2008 express size Pin
Jassim Rahma19-Jun-10 5:20
Jassim Rahma19-Jun-10 5:20 
GeneralRe: determine sql server 2008 express size Pin
Henry Minute19-Jun-10 5:45
Henry Minute19-Jun-10 5:45 
QuestionConsole is showing up with GUI Pin
muteb18-Jun-10 5:03
muteb18-Jun-10 5:03 
AnswerRe: Console is showing up with GUI Pin
Luc Pattyn18-Jun-10 5:20
sitebuilderLuc Pattyn18-Jun-10 5:20 
GeneralRe: Console is showing up with GUI Pin
muteb18-Jun-10 5:22
muteb18-Jun-10 5:22 
AnswerRe: Console is showing up with GUI Pin
PIEBALDconsult18-Jun-10 6:10
mvePIEBALDconsult18-Jun-10 6:10 
GeneralRe: Console is showing up with GUI Pin
muteb18-Jun-10 18:51
muteb18-Jun-10 18:51 
QuestionFile Upload Pin
kalyan_vb18-Jun-10 4:37
kalyan_vb18-Jun-10 4:37 
AnswerRe: File Upload Pin
Not Active18-Jun-10 4:56
mentorNot Active18-Jun-10 4:56 
QuestionAutomate publish website using c# Pin
Scrapis18-Jun-10 3:50
Scrapis18-Jun-10 3:50 
AnswerRe: Automate publish website using c# Pin
R. Giskard Reventlov18-Jun-10 3:52
R. Giskard Reventlov18-Jun-10 3:52 
GeneralRe: Automate publish website using c# Pin
Scrapis27-Jun-10 20:42
Scrapis27-Jun-10 20:42 
QuestionCannot find redistributable .cat file..? Pin
Paladin200018-Jun-10 3:42
Paladin200018-Jun-10 3:42 
AnswerRe: Cannot find redistributable .cat file..? Pin
Richard Andrew x6418-Jun-10 5:05
professionalRichard Andrew x6418-Jun-10 5:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.