title: Call a public method of main class from another class
body: <p>My main <strong>Form1.cs</strong> as below </p>
  
  <pre><code>   public partial class Form1: Form
      {
          Test _Test = new Test()
  
          public Form1()
          {
              InitializeComponent();
              _Test._TestMethod();
          }
  
          public void _MainPublicMethod(string _Message, string _Text)
          {
              MessageBox.Show(_Message);
              TextBox1.Text = Text;
          }
      }
  </code></pre>
  
  <p>My <strong>Test.cs</strong> as below</p>
  
  <pre><code>class Test
  {
      Form1 _Form1 = new Form1();
  
      public void _TestMethod()
      {
          _Form1._MainPublicMethod("Test Message", "Test Text");
      }
  }
  </code></pre>
  
  <p>When i debug my project, codes doesn't work. </p>
  
  <p>Thank you in advance.</p>