I was able to link the next form with a current form. But when i tried linking a previous form with the current form then i was not able to do it.
Is it not possible to go back to an already visited form again?
I have four windows forms- Form1, Form2, Form3, Result.
In Form1, I give the code Form2.Show() after the click of a button. The code works fine.
In Form2, I gave the code Form3.Show() after the clock of a button. This too works fine.
In Form3, I gave an If condition:
If button1.Click() Then
Result.Show()
ElseIf button2.Click() Then
Form1.Show()
EndIf
When I click the button1 on Form 3, it navigates to Result Form. However when I click button2 the control remains on Form3 and does not navigate to Form1.
How do i rectify this problem? How do i navigate to a previous form by the click of button?