title: How to access hashtables value from another forms?
body: <p>I have tree form and a hashtable.Hashtable was created in form1.How can i access hashtable values from form3.</p>
  
  <pre><code>f1.hash[txtUpNumber.Text] = " "+txtUpName.Text +"/"+ txtUpGrade.Text +"/"+ txtUpLGrade.Text;
  </code></pre>
  
  <p>I use this code and there is no mistake but hashtable values null.</p>
  
  <pre><code>    public Form2 f2;
      public Form1 f1;
      public Form3()
      {
          InitializeComponent();
      }
  
      private void Form3_Load(object sender, EventArgs e)
      {
  
       }
      public void disp(ListViewItem each)
      {
          txtUpNumber.Text = each.SubItems[0].Text;
          txtUpName.Text = each.SubItems[1].Text.TrimStart();
          txtUpGrade.Text = each.SubItems[2].Text;
          txtUpLGrade.Text = each.SubItems[3].Text;
      }
  
      private void btnUpdate_Click(object sender, EventArgs e)
      {   try
          {
          f1.hash[txtUpNumber.Text] = " "+txtUpName.Text +"/"+ txtUpGrade.Text +"/"+   txtUpLGrade.Text; //update hashtable
          this.Hide();
          Form2 f2 = new Form2();
          f2.ShowDialog();
          }catch(Exception ex)
          {
              MessageBox.Show(ex.ToString()); 
          }
      }
  </code></pre>
  
  <p>Firstly I fill data with listviewitems and I take information from textbox for hashtable.
  I dont see error but f1.hash is null?
  This is hashtable creation in form1.</p>
  
  <pre><code>public  Hashtable hash = new Hashtable();
  </code></pre>