title: How to call static variable from another form c#?
body: <p>I have MDI parent and few child forms. I want to declare a static variable in MDI parent form, and 'call' it from my child forms.</p>
  
  <p>In particulary I want it to start as 0 (zero) and eventualy give it value 1 or 2.</p>
  
  <p>This is the way I declared my static variable, and I want to know IS THE CODE OK, AND IF NOT WHAT IS WRONG.</p>
  
  <pre><code>static class Permission
      {
  
          static int role;
  
          public static int GetPermission()
          {
              role = 0;
              return (role);
          }
  
      }
  </code></pre>
  
  <p>The second and more important question is HOW TO CALL THAT STATIC VARIABLE INSIDE MY CHILD FORM(S). What code should I write and where ?</p>
  
  <p>Thank you all.</p>