Accessing System Menu from C#

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • TB

    #1

    Accessing System Menu from C#

    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
  • Selvin

    #2
    Re: Accessing System Menu from C#

    <ciach>
    check this out



    pozdrawiam

    --
    Selvin - Przemek Sulikowski
    selvin@osadkows ki.com.pl


    Comment

    • TB

      #3
      Re: Accessing System Menu from C#

      "Selvin" <nospam_selvin@ osadkowski.com. pl_nospam> wrote in news:bgapvt$ik3
      $1@atlantis.new s.tpi.pl:
      [color=blue]
      > <ciach>
      > check this out
      >
      > http://www.developerfusion.com/show/3413/
      >
      > pozdrawiam
      >[/color]

      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

      Comment

      Working...