How to modify the ControlBox(system menu) of a Form?

  • Thread starter Thread starter Yuan Ze
  • Start date Start date
Y

Yuan Ze

I want to add some menu items to the ControlBox/System menu of a Form. Is it
possible to get an instance of ControlBox and handle the events from it in
managed code?

Thanks.
 
You have to use Win32 API to do that
- see GetSystemMenu and EnableMenuItem Win32 APIs in Platform SDK

HTH
Alex
 
Back
Top