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.

Re: How to modify the ControlBox(system menu) of a Form? by ClayB

ClayB
Sat Jun 05 04:46:17 CDT 2004

Check out this thread.

http://www.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=aBGu3W%23yBHA.2480%40cpmsftngxa08&rnum=3&prev=/groups%3Fas_q%3D%2522system%2520menu%2522%2520add%26safe%3Dimages%26ie%3DUTF-8%26as_ugroup%3D*dotnet*%26lr%3D%26hl%3Den

=====================
Clay Burch, .NET MVP

Visit www.syncfusion.com for the coolest tools

"Yuan Ze" <Naturalx@hotmail.com> wrote in message
news:Oh7qjprSEHA.2692@TK2MSFTNGP09.phx.gbl...
> 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.
>
>



Re: How to modify the ControlBox(system menu) of a Form? by AlexS

AlexS
Sat Jun 05 10:01:49 CDT 2004

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

HTH
Alex

"Yuan Ze" <Naturalx@hotmail.com> wrote in message
news:Oh7qjprSEHA.2692@TK2MSFTNGP09.phx.gbl...
> 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.
>
>