title: How to update progress bar from another class C#?
body: <p>I have my progressbar in form1. and i have another class called process.cs</p>
  
  <p>In the main form I have these two functions...</p>
  
  <pre><code>    public void SetProgressMax(int max)
      {
          uiProgressBar.Value = 0;
          uiProgressBar.Minimum = 0;
          uiProgressBar.Maximum = max;
      }
  
      public void IncrementProgress()
      {
          uiProgressBar.Increment(1);
      }
  </code></pre>
  
  <p>How can I call these functions from my process.cs class?</p>