Thursday, May 7, 2009

C# - Why a mdi form does not produce a click event?

It doesn't fire the click event because you are not clicking on the actual
form you are clicking on an MDIClient.
This is the last control in the control's collection of the form.
Attach the click event to this.
this.Controls[this.Controls.Count -1].Click += new EventHandler(Form1_Click);

0 תגובות:

Post a Comment

 
Home | About | Link | Link
Simple Proff Blogger Template Created By Herro | Inspiring By Busy Bee Woo Themes