Hi All,
I'm very new to VB, and I've been working a project for a class for a while. I'm trying to link totals from three different forms to a final form, but I'm getting stuck w/my coding. Someone suggested that I use the first form to set up the all the info that would need to pass through but for some reason, I keep getting errors. The primary error I'm getting says that a 'parent' is not a memeber of the form and an event load can not be found. Actually I have a total of 5 errors, which I'm going to list and I'm also going to attach my project in case that makes it any clearer. Thanks very much for help in advance.
Thanks again,
Tina
Error list:
Error #1 Event 'Load' cannot be found. associated with:
Private Sub DirectoryForm_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
Error #2 Error 2 Handles clause requires a WithEvents variable defined in the containing type or one of its base types. associated w/:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MembershipOptionsForm.Show(Me)
End Sub
End Class
Error # 3 Error 3 Option Strict On disallows implicit conversions from 'Hayes_Fitness_Center.DirectoryForm.DirectoryForm' to 'System.Windows.Forms.IWin32Window'.
associated w/:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MembershipOptionsForm.Show(Me)
End Sub
End Class
Error # 4 Error 4 'Parent' is not a member of 'Hayes_Fitness_Center.DirectoryForm.MemberhshipOptionsForm'. C:\Users\Tina\Desktop\Hayes Fitness Center\Hayes Fitness Center Solution\Hayes Fitness Center\Form1.vb 71 15 Hayes Fitness Center
associated w/:
Public Class MemberhshipOptionsForm
Public Sub DataChanged(ByVal sender As Object, ByVal e As EventArgs)
CType(Me.Parent, DirectoryForm).MyMember.MembershipOption =
End Sub
End Class
Error #5 Error 5 Expression expected. C:\Users\Tina\Desktop\Hayes Fitness Center\Hayes Fitness Center Solution\Hayes Fitness Center\Form1.vb 71 67 Hayes Fitness Center
associated w/:
CType(Me.Parent, DirectoryForm).MyMember.MembershipOption =
End Sub