There are many example adding event handler for other object such as button, textbox, but there are not for Windows form.
I am trying to add an event handler to my Windows form, and I stuck in error
Here is my code
Form f = new Form();
f.BackColor = Color.White;
f.FormBorderStyle = FormBorderStyle.None;
f.Bounds = Screen.PrimaryScreen.Bounds;
f.TopMost = true;
f.Opacity = 0.6;
f.Click = new EventHandler(this.FakeMouseEvent);
f.Show();
Is there anyone help me out?
I wanna use mouseClick event in dynamic form.