|
//====================================================
//| Downloaded From |
//| Visual C# Kicks - http://www.vcskicks.com/ |
//| License - http://www.vcskicks.com/license.html |
//====================================================
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowShake
{
public partial class Form1 : ShakeForm
{
public Form1()
{
InitializeComponent();
this.FormShaken += new EventHandler(Form1_FormShaken);
}
private bool minimize = true;
void Form1_FormShaken(object sender, EventArgs e)
{
if (minimize)
WindowStateManager.MinimizeAll(this.Handle);
else
WindowStateManager.MaximizeAll(this.Handle);
minimize = !minimize;
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start("http://www.vcskicks.com/");
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.