hey im make an application with a udp client.
but got the problem that the application gets locked up when i click the button btnGetStatus fast after eachother.
is there a way to let the udp client only start if the other one is closed?
my Code:
[VB]
Dim currentPlayers(1, 10) As String
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
getCurrentStatus()
End Sub
Public Function getCurrentStatus()
Try
Dim udp As New UdpClient("81.11.182.187", "20102")
Dim i, j As Integer
Dim b() As Byte = System.Text.Encoding.Default.GetBytes("
but got the problem that the application gets locked up when i click the button btnGetStatus fast after eachother.
is there a way to let the udp client only start if the other one is closed?
my Code:
[VB]
Dim currentPlayers(1, 10) As String
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
getCurrentStatus()
End Sub
Public Function getCurrentStatus()
Try
Dim udp As New UdpClient("81.11.182.187", "20102")
Dim i, j As Integer
Dim b() As Byte = System.Text.Encoding.Default.GetBytes("