Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Class Form1
- Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
- If CInt(txtv1.Text) > 0 Then
- ListBox1.Items.Add(txtv1.Text)
- X += 1
- Else
- Button1.Enabled = False
- ListBox1.Sorted = True
- MsgBox(X)
- MsgBox(ListBox1.Items.ItemCount - X)
- End If
- End Sub
- Dim X As Integer = ListBox1.Items.ItemCount - 1
- End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement