Skip to content

Instantly share code, notes, and snippets.

@ianSurii
Last active January 9, 2024 13:33
Show Gist options
  • Save ianSurii/7a08c2bb00b9d7e141b77dab0915ca6c to your computer and use it in GitHub Desktop.
Save ianSurii/7a08c2bb00b9d7e141b77dab0915ca6c to your computer and use it in GitHub Desktop.
Windows Timer
public SplashPage()
{
InitializeComponent();
}
protected override void Dispose(bool disposing)
{
if (disposing)
{
// mutex.ReleaseMutex();
if (components != null)
{
components.Dispose();
}
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Windows.Forms.Timer activeAppCheckTimer;
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SplashPage));
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.backupTime = new System.Windows.Forms.Timer(this.components);
this.locationTimer = new System.Windows.Forms.Timer(this.components);
this.Qubanga = new System.Windows.Forms.NotifyIcon(this.components);
this.GarbageCollection = new System.Windows.Forms.Timer(this.components);
activeAppCheckTimer = new System.Windows.Forms.Timer(this.components);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// activeAppCheckTimer
//
activeAppCheckTimer.Enabled = true;
activeAppCheckTimer.Interval = 1000;
activeAppCheckTimer.Tick += new System.EventHandler(this.activeCheck);
//
// pictureBox1
//
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(0, 0);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(540, 437);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.pictureBox1.TabIndex = 1;
this.pictureBox1.TabStop = false;
this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
//
// backupTime
//
this.backupTime.Enabled = true;
this.backupTime.Interval = 5000;
this.backupTime.Tick += new System.EventHandler(this.backup);
//
// locationTimer
//
this.locationTimer.Tick += new System.EventHandler(this.locationTimer_Tick);
//
// Qubanga
//
this.Qubanga.BalloonTipIcon = System.Windows.Forms.ToolTipIcon.Info;
this.Qubanga.BalloonTipText = "Qubanga laucher";
this.Qubanga.BalloonTipTitle = "Qubanga";
this.Qubanga.Icon = ((System.Drawing.Icon)(resources.GetObject("Qubanga.Icon")));
this.Qubanga.Text = "Qubanga";
this.Qubanga.Visible = true;
this.Qubanga.Click += new System.EventHandler(this.notifyIcon1_Click);
//
// GarbageCollection
//
this.GarbageCollection.Enabled = true;
this.GarbageCollection.Tick += new System.EventHandler(this.GarbageCollection_Tick);
//
// SplashPage
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.AutoSize = true;
this.BackColor = System.Drawing.SystemColors.ButtonHighlight;
this.ClientSize = new System.Drawing.Size(540, 437);
this.ControlBox = false;
this.Controls.Add(this.pictureBox1);
this.ForeColor = System.Drawing.SystemColors.ActiveCaption;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "SplashPage";
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Qubanga";
this.TopMost = true;
this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
this.Closed += new System.EventHandler(this.Form1_Closed);
this.Load += new System.EventHandler(this.Form1_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private void activeCheck(object sender, System.EventArgs e)
{
}
[STAThread]
static void Main()
{
SplashPage.applnames = new Stack();
SplashPage.applhash = new Hashtable();
SplashPage.splash = new SplashPage();
Application.Run(SplashPage.splash);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment