Created
December 12, 2013 17:37
-
-
Save jda0/7932058 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Class Form1 | |
' Form Controls: TextBox TxtLower, TextBox TxtLimit, Button BtnExe, ListBox LstItems | |
Private Sub BtnExe_Click(sender As System.Object, e As System.EventArgs) Handles BtnExe.Click | |
Try | |
Dim l0 As Integer = CInt(TxtLower.Text) | |
Dim l1 As Integer = CInt(TxtLimit.Text) | |
LstItems.Items.Clear() | |
For i As Integer = l0 To l1 | |
LstItems.Items.Add(i) | |
Next | |
Catch ex As Exception | |
MsgBox("Error: Invalid limits") | |
End Try | |
End Sub | |
End Class |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment