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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top