title: VB.Net Passing values to another form
body: <p>I would like to know how to pass a value from form1 to another form's public sub.
  The problem is that it says "it is not accesible in this context because it is 'Private'."</p>
  
  <p>I've tried changing Form 1 Private Sub to Public Sub but the same error remains. How should i make it work?</p>
  
  <pre><code>Public Class Form1
  Dim test(), text1 As String
  Const asd = "abcabc"
  
  Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
      text1 = Space(LOF(1))
      test = Split(text1, asd)
      HOST = test(1)
  End Sub
  </code></pre>
  
  <p>And i want to pass HOST = test(1) value to another form</p>
  
  <pre><code>Public Class Form2
  
  Public Sub Check()
      'get the value to here
  End Sub
  </code></pre>