Advertisement
Guest User

Form1

a guest
Feb 28th, 2015
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Imports System.Threading.Tasks
  2.  
  3. Public Class Form1
  4.    
  5.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  6.         Dim lol As New Client
  7.         lol.Connect(TextBox2.Text, NumericUpDown1.Value)
  8.         ListBox1.Items.Add(lol)
  9.        
  10.  
  11.  
  12.     End Sub
  13.  
  14.     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  15.         If ListBox1.SelectedItems.Count <> 0 Then
  16.             CType(ListBox1.SelectedItem, Client).Send(TextBox1.Text)
  17.         End If
  18.     End Sub
  19. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement