title: How to create a custom MessageBox?
body: <p>I'm trying to make a custom message box with my controls.</p>
  
  <pre><code>public static partial class Msg : Form
  {
      public static void show(string content, string description)
      {
  
      }
  }
  </code></pre>
  
  <p>Actually I need to place some controls (a gridview) in this form and I have to apply my own theme for this window, so I don't want to use <code>MessageBox</code>. I want to call this from my other forms like </p>
  
  <pre><code>Msg.show(parameters);
  </code></pre>
  
  <p>I don't wish to create an object for this form.</p>
  
  <p>I know I can't inherit from <code>Form</code> class because it isn't static. But I wonder how <code>MessageBox</code> is implemented, because it is static. It is being called like <code>MessageBox.show("Some message!");</code></p>
  
  <p>Now I'm getting an error because inheritance is not allowed:</p>
  
  <blockquote>
    <p>Static class 'MyFormName' cannot derive from type 'System.Windows.Forms.Form'. Static classes must derive from object</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/uCFlw.png" alt="Screenshot of my form"></p>
  
  <p>How <code>MessageBox</code> is implemented then?</p>