I have a form with a control on it and a class. I want to call the class and then in the class change one of the controls properties without creating a new form.
This is the code in the class:
This is the code in the form:
This is a very simple test so I know how to use it and then can apply it to a more complex program
Thanks a head of time
Electron
This is the code in the class:
Visual Basic:
Public Class Test
Sub Change()
Dim f As New Form1()
f.cmdStart.Text = "Worked"
f.Show()
End Sub
End Class
This is the code in the form:
Visual Basic:
Private Sub cmdStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdStart.Click
Dim t As New Test()
t.Change()
End Sub
This is a very simple test so I know how to use it and then can apply it to a more complex program
Thanks a head of time
Electron