I am creating a wizard that contains next and back buttons. When the user selects next, then a certain form is loaded and the name of the form is placed in an array. Then when the user selects the back button the previous entry in the array contains the name of the previous form. Ideally the previous form should then be brought. The code I'm thinking about is similar to the following:
sub btnBack_click(...) Handles ...
Dim prevFormName As String
Dim prevForm
formArrayList.removeAt(formArrayList.count-1)
prevFormName = formArrayList(count-1)
prevForm = New CType(prevFormName, form)
prevForm.showDialog()
Me.close
end sub
sub btnBack_click(...) Handles ...
Dim prevFormName As String
Dim prevForm
formArrayList.removeAt(formArrayList.count-1)
prevFormName = formArrayList(count-1)
prevForm = New CType(prevFormName, form)
prevForm.showDialog()
Me.close
end sub