Question: In Exercises 12 and 14 identify the errors. (2 points each) 12. Private Sub btnDisplay_Click(...) Handles btnDisplay.Click For i As Integer = 1 To 3
In Exercises 12 and 14 identify the errors. (2 points each)
12. Private Sub btnDisplay_Click(...) Handles btnDisplay.Click
For i As Integer = 1 To 3
lstBox.Items.Add(I & & 2 ^ i)
End Sub
14. Private Sub btnDisplay_Click(...) Handles btnDisplay.Click
For j As Integer = 1 To 4 Step 0.5
lstBox.Items.Add(j)
Next
End Sub
In Exercise 16 rewrite the program using For . . . Next loop. (2 points each)
16. Private Sub btnDisplay_Click(...) Handles btnDisplay.Click
lstBox.Items.Add(hello)
lstBox.Items.Add(hello)
lstBox.Items.Add(hello)
lstBox.Items.Add(hello)
End Sub
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
