Advertisement
Guest User

Lista D

a guest
Apr 21st, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Class Form1
  2.  
  3.     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  4.         If CInt(txtv1.Text) > 0 Then
  5.             ListBox1.Items.Add(txtv1.Text)
  6.             X += 1
  7.         Else
  8.             Button1.Enabled = False
  9.             ListBox1.Sorted = True
  10.             MsgBox(X)
  11.             MsgBox(ListBox1.Items.ItemCount - X)
  12.  
  13.         End If
  14.  
  15.     End Sub
  16.     Dim X As Integer = ListBox1.Items.ItemCount - 1
  17. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement