title: How to open window system menu on right click?
body: <p>I have a borderless splash screen form displaying loading progress and containing <strong><em>Minimize</em></strong> and <strong><em>Close</em></strong> buttons (something similar to splash screens seen in Office 2013). I would also like to <strong>provide system menu of the window which opens on right click anywhere in the form.</strong></p>
  
  <blockquote>
    <p><img src="https://i.stack.imgur.com/aGEzU.png" alt="Classic system menu of a window"></p>
  </blockquote>
  
  <p>Currently I'm achieving opening the menu by sending keys <strong>Alt+Space</strong>.</p>
  
  <pre><code>    System.Windows.Forms.SendKeys.SendWait("% ")   'sending Alt+Space
  </code></pre>
  
  <p>With this approach, window system menu always opens in top-left corner of the window.</p>
  
  <p><strong>Is there a way to programatically open the system menu the same way as Windows does natively when user right-clicks title bar of the window?</strong> An API call or message which pops up the menu open?</p>
  
  <p>I would like to keep the system menu available in the app because I have added also items <em>"About"</em> and <em>"Settings"</em> in there. (This app serves as an independent launcher and updater of the core app.)</p>
  
  <p>The platform is <strong>WPF</strong> with <strong>Windows Forms</strong> library included, too (due to that workaround using <code>SendWait()</code>). Feel free to choose VB or C# in case of posting some code.</p>