Jump to content
bc-vnt

Port Scanner VB.NET + souce code for beginners

Recommended Posts

Posted (edited)

Download : WindowsApplication1.exe download - 2shared

Imports System.Net.Sockets
Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Start()
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Timer1.Stop()
End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
ListBox1.Items.Clear()
End Sub

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
TextBox1.Text += 1
Try
Dim Range As TcpClient = New TcpClient(TextBox2.Text, TextBox1.Text)
If Range.Connected = True Then
ListBox1.Items.Add(TextBox1.Text & "Is open")
End If
Catch ex As Exception
ListBox1.Items.Add(TextBox1.Text & "Is close")
ListBox1.SelectedIndex = ListBox1.SelectedIndex + 1
End Try

End Sub
End Class

Am facut ceva si cu " Try " , cum mi-a sugerat @dariusmare

https://rstcenter.com/forum/57134-spammer-source-code-4-begginers.rst

Edited by bc-vnt

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...