.NET WinForms Custom Control: how to get a reference to the containing form
问题 Is there a way, when creating a WinForms Custom Control/User Control, to get a reference at runtime to the form the control is placed on, so as to access various properties of that form? I would rather not pass a reference to the form into the constructor of the control, as, for various reasons, I need to keep a default constructor with no parameters. One example: I have several Custom Controls that encapsulate Win32 API calls, and some of the calls require Window handles to be passed as