@help
Your right, however he would still have to paste the code to fix the error as is (or more of it) And either Myself, Yourself, Lolland, or Bombsaway would have resolved the issue anyway by discovering the problem and posting the solution, I was just trying to make my life easier and not have to create the controls
@explain more,
That's why I suggested the PM, the error could be derived from another part in the code, the snippet won't help, because to the best of my knowledge, there "is nothing wrong"
He is using my "real" Ip tutorial to create a IPaddress block for his software
Code:
If Label2.Tex*****ntains(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()
Why does everyone make things complicated , when it could be achieved so easily
I created the module, use it
Code:
Form Load
If ShowIp() = "45.286.279.68" Then
MsgBox("Your banned")
Else
MsgBox("Welcome")
End If
Code:
or use texbox1.text = showip()
Code:
If textbox1.text = "62.98.132.453" then
Yada yada yada
end if
You get the idea, If your already using my module, then may as well take advantage if it's simplicity
Now you can get more advanced and create a database and have the database on a server and have use it to ban in real time