Hoe to disable a mouse click on the form ??
Printable View
Hoe to disable a mouse click on the form ??
Method invoked on click event of form
Add handler for click event of form when needed.Code:private void Form1_Click(object sender, System.EventArgs e)
{
MessageBox.Show("FORM CLICKED");
}
And remove it when donot need the event to occurCode:this.Click += new EventHandler(Form1_Click);
Code:this.Click -= new EventHandler(Form1_Click);