Opening up multiple forms VB.NET

116 Views Asked by At

Good evening,

I'm having a issue when opening up another form when clicking the button. Basically the form I'm trying to open when you click the button is not in the same folder of the main Form. When I go to either build or debug the app, I get the following message

1>C:\Programming\Folder\Exam\Exam\MainDev.vb(1192,9): error BC30451: 'ExamSets' is not declared. It may be inaccessible due to its protection level. ========== Build: 0 succeeded, 1 failed, 25 up-to-date, 0 skipped ==========

I've tried multiple times, looked on the site, and even removed declaring the variable frmESNew and typing ExamSets.frmExamSetsCreateTestingX.show()

Thank you,

Gerard

   Private Sub ButScreenTestCreate_ItemClick(sender As Object, e As ItemClickEventArgs) _
        Handles butScreenTestCreate.ItemClick

        If ExamSetCreating = True Then
            Exit Sub
        End If
        ExamSetCreating = True

        Dim frmESNew As New ExamSets.frmExamSetsCreateTestingX
        frmESNew.Show()


    End Sub

I've tried removing the Dim, and found no luck in that attempt

0

There are 0 best solutions below