Advertisement
Guest User

Untitled

a guest
May 29th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.54 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9.  
  10. namespace Descartes
  11. {
  12.     public partial class frmSplashScreen : Form
  13.     {
  14.         int IntX;
  15.         int IntY;
  16.  
  17.         public frmSplashScreen()
  18.         {
  19.             InitializeComponent();
  20.         }
  21.  
  22.         private void tmrFadeIn_Tick(object sender, EventArgs e)
  23.         {
  24.             //Fades the page in
  25.  
  26.             this.Opacity += 0.02;
  27.         }
  28.  
  29.         private void tmrWait_Tick(object sender, EventArgs e)
  30.         {
  31.             //Stops the fade in function
  32.  
  33.             tmrFadeIn.Enabled = false;
  34.         }
  35.  
  36.         private void frmSplashScreen_MouseMove(object sender, MouseEventArgs e)
  37.         {
  38.             //IntX = frmSplashScreen.MousePosition.X;
  39.             //IntY = frmSplashScreen.MousePosition.Y;
  40.  
  41.             //lblClick.Location = new Point(IntX,IntY);
  42.         }
  43.  
  44.         private void frmSplashScreen_Load(object sender, EventArgs e)
  45.         {
  46.  
  47.         }
  48.  
  49.         private void frmSplashScreen_Click(object sender, EventArgs e)
  50.         {
  51.             // Goes to the Login Page
  52.  
  53.             frmLogin frm = new frmLogin();
  54.             frm.Show();
  55.             this.Hide();
  56.         }
  57.  
  58.         private void lblClick_Click(object sender, EventArgs e)
  59.         {
  60.             // Goes to the Login Page
  61.  
  62.             frmLogin frm = new frmLogin();
  63.             frm.Show();
  64.             this.Hide();
  65.         }
  66.     }
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement