C
Chris Ashley
I have a class called App set as the startup object with the following code:
Friend Class App
Shared Sub Main()
Dim FrmMain As New MainForm
Application.Run(FrmMain)
End Sub
End Class
In another form I use the following code:
Private Sub AddCustomer_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
FrmMain.Text = "Add Customer"
End Sub
I get the error that FrmMain is not declared. Didn't I get a reference to it
called FrmMain in my Sub Main? How else can I get a reference to the startup
form?
Regards,
Chris
Friend Class App
Shared Sub Main()
Dim FrmMain As New MainForm
Application.Run(FrmMain)
End Sub
End Class
In another form I use the following code:
Private Sub AddCustomer_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
FrmMain.Text = "Add Customer"
End Sub
I get the error that FrmMain is not declared. Didn't I get a reference to it
called FrmMain in my Sub Main? How else can I get a reference to the startup
form?
Regards,
Chris