SHARE
TWEET

Lista D

a guest Apr 21st, 2019 76 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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top