public Form1() { InitializeComponent(); sizeChangeCombo.SelectedItem = 12; MouseDown += new System.Windows.Forms.MouseEventHandler(this.Form1_MouseDown); MouseUp += new System.Windows.Forms.MouseEventHandler(this.Form1_MouseUp); MouseMove += new System.Windows.Forms.MouseEventHandler(this.Form1_MouseMove); FormClosing += new FormClosingEventHandler(Form1_FormClosing); HookedKeyboardNofity += new KeyboardHooker.HookedKeyboardUserEventHandler(Form1_HookedKeyboardNofity); videoLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.VideoLabel1_LinkClicked); sizeChangeCombo.SelectedIndexChanged += new System.EventHandler(this.SizeChangeCombo_SelectedIndexChanged); colorChangeCombo.SelectedIndexChanged += new System.EventHandler(this.ColorChangeCombo_SelectedIndexChanged); backColorChangeCombo.SelectedIndexChanged += new System.EventHandler(this.BackColorChangeCombo_SelectedIndexChanged); KeyboardHooker.Hook(HookedKeyboardNofity); }
private void Form1_FormClosing(object sender, FormClosingEventArgs e) { KeyboardHooker.UnHook(); }