title: How to change a label from another class? c# windows forms visual studio
body: <p>I know there are a lot of threads talking about this and believe me I've seen all of them, but I think I'm a little slow and cant figure out how to do this so here is the thing!
  I have one form</p>
  
  <pre><code>public partial class Form1 : Form
  {
      public Form1()
      {
          InitializeComponent();
  
      }
  
      private void button4_Click(object sender, EventArgs e)
      {
          adi mYadi= new adi();
          adi.paso(); 
      }
  
      private void Form1_Load(object sender, EventArgs e)
      {
  
      }
  
      public void l8u(string l )
      {
         label8.Text = l; 
      }
  }
  </code></pre>
  
  <p>The <code>l8u</code> method is supposed to change the text in <code>label8</code>, so it can't be static because <code>label8</code> isn't static (is public) and I have this other class</p>
  
  <pre><code>public class adi :instrucion
  {
      private  int paso;
      private  int registroD;
      private  int registroO; 
      private  int valor;
      private  int vsin; 
  
      public adi()
      {
          paso = 1;
      }
  
      public  void setRD(int i){
          registroD = i; 
      }
  
      public  void setR0(int i)
      {
          registroO = i;
      }
      public void setV(int i)
      {
          valor = i;
      }
  
      public  int getRD()
      {
          return registroD ;
      }
  
      public  int getR0()
      {
          return registroO;
      }
  
      public int getVf()
      {
          return vsin;
      }
  
      public void paso(){
           //in this method I need change the value of label8
      }  
  }
  </code></pre>
  
  <p>The method paso is the one in charge of changing the value of <code>label8</code> but I just can't do it! I've tried many different ways for example doing something like</p>
  
  <pre><code>public void paso()
  {
      Form1.l8u();
  } 
  </code></pre>
  
  <p>But that's not possible since <code>Form1</code> is just the name of the class and l8u is not and static method, also tried setting <code>label8</code> as public static but visual studio didn't like that and whenever I used a new control in the form VS change the public static for just public. </p>
  
  <p>Hope you can help me!</p>