Dear all, I have a problem with Select case. I want to invoke different sub procedures each time a button is clicked. I decided to use select case (not sure this the right way to achieve this goal). Here is the code:
Protected Sub AddButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles AddButton.Click
Dim count as integer=1
Select Case count
In each sub procedure except case else, I kept increaseing count by setting it to value 2. My problem is that after executing case 1, for some reasons, it keeps repeating itself to case 2. How can I stop it after case 1 is executed? Thank you very much.
View Complete Post