Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
Ascii Maker By SaTaNa - SplashScreen.cs

SplashScreen.cs

Caricato da:
Scarica il programma completo

  1. using System;
  2. using System.Drawing;
  3. using System.Collections;
  4. using System.ComponentModel;
  5. using System.Windows.Forms;
  6.  
  7. namespace WindowsApplication31
  8. {
  9.         /// <summary>
  10.         /// Summary description for SplashScreen.
  11.         /// </summary>
  12.         public class SplashScreen : System.Windows.Forms.Form
  13.         {
  14.                 private System.Windows.Forms.Timer timer1;
  15.                 private System.Windows.Forms.ProgressBar prgbar;
  16.                 private System.Windows.Forms.Label label1;
  17.                 private System.ComponentModel.IContainer components;
  18.                
  19.                 public SplashScreen()
  20.                 {
  21.                         InitializeComponent();
  22.                         timer1.Start();
  23.                 }
  24.  
  25.                 /// <summary>
  26.                 /// Clean up any resources being used.
  27.                 /// </summary>
  28.                 protected override void Dispose( bool disposing )
  29.                 {
  30.                         if( disposing )
  31.                         {
  32.                                 if(components != null)
  33.                                 {
  34.                                         components.Dispose();
  35.                                 }
  36.                         }
  37.                         base.Dispose( disposing );
  38.                 }
  39.  
  40.                 #region Windows Form Designer generated code
  41.                 /// <summary>
  42.                 /// Required method for Designer support - do not modify
  43.                 /// the contents of this method with the code editor.
  44.                 /// </summary>
  45.                 private void InitializeComponent()
  46.                 {
  47.                         this.components = new System.ComponentModel.Container();
  48.                         System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(SplashScreen));
  49.                         this.timer1 = new System.Windows.Forms.Timer(this.components);
  50.                         this.prgbar = new System.Windows.Forms.ProgressBar();
  51.                         this.label1 = new System.Windows.Forms.Label();
  52.                         this.SuspendLayout();
  53.                         //
  54.                         // timer1
  55.                         //
  56.                         this.timer1.Interval = 700;
  57.                         this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
  58.                         //
  59.                         // prgbar
  60.                         //
  61.                         this.prgbar.Location = new System.Drawing.Point(64, 224);
  62.                         this.prgbar.Name = "prgbar";
  63.                         this.prgbar.Size = new System.Drawing.Size(168, 16);
  64.                         this.prgbar.TabIndex = 1;
  65.                         //
  66.                         // label1
  67.                         //
  68.                         this.label1.BackColor = System.Drawing.Color.Transparent;
  69.                         this.label1.Font = new System.Drawing.Font("Comic Sans MS", 18F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
  70.                         this.label1.ForeColor = System.Drawing.Color.Lime;
  71.                         this.label1.Location = new System.Drawing.Point(48, 216);
  72.                         this.label1.Name = "label1";
  73.                         this.label1.Size = new System.Drawing.Size(360, 32);
  74.                         this.label1.TabIndex = 2;
  75.                         this.label1.Click += new System.EventHandler(this.label1_Click);
  76.                         //
  77.                         // SplashScreen
  78.                         //
  79.                         this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
  80.                         this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
  81.                         this.ClientSize = new System.Drawing.Size(392, 256);
  82.                         this.Controls.Add(this.label1);
  83.                         this.Controls.Add(this.prgbar);
  84.                         this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
  85.                         this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
  86.                         this.Name = "SplashScreen";
  87.                         this.ShowInTaskbar = false;
  88.                         this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
  89.                         this.Load += new System.EventHandler(this.SplashScreen_Load);
  90.                         this.ResumeLayout(false);
  91.  
  92.                 }
  93.                 #endregion
  94.  
  95.                 private void button1_Click(object sender, System.EventArgs e)
  96.                 {
  97.                        
  98.                 }
  99.  
  100.                 private void button1_Click_1(object sender, System.EventArgs e)
  101.                 {
  102.                 Close();
  103.                 }
  104.  
  105.                 private void timer1_Tick(object sender, System.EventArgs e)
  106.                 {
  107.                 prgbar.Value+=10;
  108.                         if(prgbar.Value==10)
  109.                         {
  110.                                 label1.Text = " satana ascii maker 1.2";
  111.                         }
  112.                         if(prgbar.Value==20)
  113.                         {
  114.                                 label1.Text = "SAtana ascii maker 1.2";                 }
  115.                         if(prgbar.Value==30)
  116.                         {
  117.                                 label1.Text = "saTAna ascii maker 1.2";}
  118.                         if(prgbar.Value==40)
  119.                         {
  120.                                 label1.Text = "sataNA ascii maker 1.2";                 }
  121.                         if(prgbar.Value==50)
  122.                         {
  123.                         label1.Text = "satana ASCii maker 1.2";
  124.                         }
  125.                         if(prgbar.Value==60)
  126.                                 label1.Text = "satana ascII maker 1.2";
  127.                         if(prgbar.Value==70)
  128.                                 label1.Text = "satana ascii MAker 1.2";
  129.                         if(prgbar.Value==80)
  130.                                 label1.Text = "satana ascii maKER 1.2";
  131.                         if(prgbar.Value==90)
  132.                                 label1.Text = "§å†åÑå Á§Çîî Må|<€R 1.2";
  133.                         if(prgbar.Value==100)
  134.                         {
  135.                         System.Threading.Thread.Sleep(400);
  136.                         Close();
  137.                         timer1.Stop();
  138.                         }
  139.                 }
  140.  
  141.                 private void label2_Click(object sender, System.EventArgs e)
  142.                 {
  143.                
  144.                 }
  145.  
  146.                 private void label1_Click(object sender, System.EventArgs e)
  147.                 {
  148.                
  149.                 }
  150.  
  151.                 private void SplashScreen_Load(object sender, System.EventArgs e)
  152.                 {
  153.                
  154.                 }
  155.         }
  156. }