[CODE=VB=]Private Sub NextButton_Clic k(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles NextButton.Clic k
Dim PageSelected As String = "Page"
Page = Page + 1
Select Case PageSelected
Case 1
AllHide() 'subroutine that hides all things on the page
VisibleOnPage01 () 'subroutine that shows things applicable to Page01
Case 2
AllHide()
VisibleOnPage02 ()
Case 3
AllHide()
VisibleOnPage03 ()
Case 4
AllHide()
VisibleOnPage04 ()
Case Else
MsgBox("error")
End Select
End Sub
[/CODE]
Each time the button is pressed it should increment the variable page the run through the case statement untill the page is found then show the items on the page, but all that happens is a msgbox appears and says error. I don't know why.
Dim PageSelected As String = "Page"
Page = Page + 1
Select Case PageSelected
Case 1
AllHide() 'subroutine that hides all things on the page
VisibleOnPage01 () 'subroutine that shows things applicable to Page01
Case 2
AllHide()
VisibleOnPage02 ()
Case 3
AllHide()
VisibleOnPage03 ()
Case 4
AllHide()
VisibleOnPage04 ()
Case Else
MsgBox("error")
End Select
End Sub
[/CODE]
Each time the button is pressed it should increment the variable page the run through the case statement untill the page is found then show the items on the page, but all that happens is a msgbox appears and says error. I don't know why.
Comment