Thanks to Noor Abbasi.
This control draws minimize and close pictures and takes appropriate action if you click them. It also maximizes or restores the form if you double click the control, and lets the user drag the form around.
Because you have control over the way the control draws itself, you cna make it look like anything you want.
One trick it uses is declaring a ParentForm variable with the WithEvents keyword so the control can catch the parent form's events. In the ReadProperties event handler, the code sets this reference if it is running at runtime.
See the code for the rest of the details.
|