Code:
Form2.Label1.Text = "hello"
(I should explain that my main menu form has a textbox and a button, when the user types something in and clicks the button a new form is created.)
Code:
Public Class MainMenuClass
Dim mynum As String
Private frm_MainMenu As MainMenuForm
Public TestArray As New ArrayList
Private c_NewForm As NewFormClass
Public Sub New(ByVal frm As MainMenuForm)
frm_MainMenu = frm
End Sub
Public Sub createNewForm(ByVal Uinput As String)
c_NewForm = New NewFormClass(Uinput, Me)
TestArray.Add(c_NewForm)
c_NewForm.Display()
End Sub
Code:
Dim TestString as String = textbox.1.text TestString.Label1.Text = "hello"
