Accessing System Menu from C#

  • Thread starter Thread starter TB
  • Start date Start date
T

TB

For a simple form without its own menu I wanted to add
an "About..." command to the system menu as I would for
an old MFC/C++ application.

However I cannot find out how to access the system menu
other than to toggle it on/off via the ControlBox
property.

Is this simply a .NET style being enforced (thou shalt
not modify the system menu) or am I overlooking something?

Thanks in advance!
-- TB
 

Yeah, I kind of figured I could dive down to the Win32 layer this way, but
was hoping for a more integrated way -- i.e. one that would allow me to
actually treat the new command as a MenuItem and hook it up to the
delegate/event mechanism as normal.

I guess it's time to derive my own SystemMenu class and get that done!!
:-)

-- TB
 
Back
Top