I totally don't get it , why i got a Additional information: Bad file name or number when Button1 was clicked in VS2008SP1 ?
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim i As Integer = 0
Do
i += 1
Print(i)
If i >= 10 Then
Print "I is above 10"
ElseIf i >= 20 Then
Exit Do
End If
Loop While (i <= 30)
End Sub
Printstatements - where would you expect that output to go? Do you have to open an output file first? Does the problem happen if you remove thePrintstatements? Does the problem happen if you remove everything except aPrintstatement?