title: Property or indexer cannot be assigned to "--" it is read only
body: <p>So I'm trying to pass a local string to another form in a c# project. This is my code:</p>
  
  <p>Form 1:</p>
  
  <pre><code>...
  Main frm = new Main();
  frm.Passvalue = usrTxt.Text;
  frm.ShowDialog();
  </code></pre>
  
  <p>Form 2</p>
  
  <pre><code>...
  public string Username;
  public string Passvalue
  {
      get { return Username; }
  }
  </code></pre>
  
  <p>I'm getting the error:</p>
  
  <blockquote>
    <p>Property or indexer "Main.Passvalue" cannot be assigned to "--" it is read only</p>
  </blockquote>
  
  <p>I never declared anything as <code>ReadOnly</code>, does anyone know what the problem here is?</p>