Help Meh!
heres some code for a project
the only thing is that, if i had xx.xxx.xxx.xxx in textbox1.text and 89.565.676.676 it would not detect: " If Label2.Text.Contains(xx.xxx.xxx.xxx)
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If Label2.Text.Contains(TextBox1.Text) Then
Label4.Visible = True
Label4.Text = "You Are Banned!"
Else
Label4.Visible = True
Label4.Text = "Not Banned. :/"
End If
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Label2.Text = ShowIp()
Dim Read As New System.IO.StreamReader(Application.StartupPath & "Adress.txt")
TextBox1.Text = "89.565.676.676" & Environment.NewLine & Read.ReadToEnd
Read.Close()
End Sub
