hi i am doin a program using multiview, i wanna put if else statement to check a condition in textboxes that i created dynamically. but what happenin is it displays the messagebox as well as changes, pls see my code for better understandin
currently im in 2nd view n tis s button click event to check condition.. if its numeric then it must goto next view, if not it must display d msg n stay in same view,. but it displays d msg n also goes to the next view.. pls teme wher im goin wrong..
currently im in 2nd view n tis s button click event to check condition.. if its numeric then it must goto next view, if not it must display d msg n stay in same view,. but it displays d msg n also goes to the next view.. pls teme wher im goin wrong..
Code:
For cnt As Integer = 0 To textbox1.text - 1 If Not IsNumeric(TxtDyn3(cnt).Text) Then MsgBox("Enter only Numbers in Actual Demand") Else MultiView1.SetActiveView(View3) End If Next
Comment