title: passing function returned value from a class to a form in vb.net
body: <p>i have a function inside a class called connecting.vb  </p>
  
  <pre><code>Public Function bring_it(ByVal a As Integer) As String
  some code in here .....
                  Form3.Show()
                  Form3.TextBox1.Text = dl.Item("workorder").ToString
                  Form3.TextBox2.Text = dl.Item("ptw").ToString
  
  end function 
  </code></pre>
  
  <p>in form3  when it loads  i want the textboxes to have passed values </p>
  
  <pre><code>    Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
   dim al as new connecting 
  al.bring_it(a) 
  end sub
  </code></pre>
  
  <p>i had to use form3.show() in bring_it function because  when form3 loads it doesn't show passed values  but the problem is  i get two windows one has desired values and the other one is empty </p>
  
  <p>i need to show form3 when i press a button (form3 is an edit window with textboxes ) </p>
  
  <p>i also think to change bring_it function to output an array but i don't know how to do it ... i don't know how to use that output array let's suppose that the resulted array is this  </p>
  
  <pre><code>st(3)={"hell","yes","no") 
  </code></pre>
  
  <p>when i call that function<br>
  <code>al.bring_it(a)</code>  how to get for example  <code>st(1)</code> and <code>st(2)</code> ...etc separately ??
  thanks in advance </p>