Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Visual Basic Programming › Help Meh!

Help Meh!

Posts 1–10 of 10 · Page 1 of 1
mnpeepno2
mnpeepno2
Help Meh!
heres some code for a project
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        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()
    End Sub
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.Tex*****ntains(xx.xxx.xxx.xxx)
#1 · 16y ago
NextGen1
NextGen1
Just Pm me the project, Ill fix it
#2 · 16y ago
XG
XGelite
Quote Originally Posted by NextGen1 View Post
Just Pm me the project, Ill fix it
lol ......

i dont see how that helps him learn. you know? if someones always just *fixing* the problem for you, you never learn.


@ mnpeep

explain more?
#3 · 16y ago
NextGen1
NextGen1
@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
#4 · edited 16y ago · 16y ago
mnpeepno2
mnpeepno2
why so complicated? to make multiple IP bans, but it only detects 1 IP at a time for some reason...
#5 · 16y ago
NextGen1
NextGen1
You will have to check the application users IP
#6 · edited 16y ago · 16y ago
mnpeepno2
mnpeepno2
good idea!
#7 · 16y ago
NextGen1
NextGen1
Yeah, it would make life easier,

Edit: One sec, I see whats wrong, It's loading but not "nextline" (vbCRLF)

let me see...

I'm replacing your textbox with a List view control, this should work ;p

Here you go

Code:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If Label2.Tex*****ntains(ListView1.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 str As String = ""
        Dim ary() As String
        str = My.Computer.FileSystem.ReadAllText(Application.StartupPath & "Adress.txt")
        ary = Split(str, vbNewLine)
        Dim x As Integer
        For x = 0 To UBound(ary)
            If ary(x) <> "" Then
                ListView1.Items.Add(ary(x))
            End If
        Next
    
    End Sub
End Class
Add a listview instead of textbox and replace your code with the one above.

It should now download a list and check it against the file.
(works for me)
#8 · edited 16y ago · 16y ago
mnpeepno2
mnpeepno2
thanks button says all XD
#9 · 16y ago
NextGen1
NextGen1
As always not a problem
#10 · 16y ago
Posts 1–10 of 10 · Page 1 of 1

Post a Reply

Similar Threads

  • Help meh scam on ebay! (youll get some cheesy poofs)By zak11 in General
    21Last post 11y ago
  • Help Meh :(By -SKULL3000- in General
    34Last post 16y ago
  • helps mehBy hahahayea in Combat Arms Help
    5Last post 16y ago
  • Help meh testBy whtlight in Combat Arms Discussions
    6Last post 16y ago
  • Help Meh!By R3V in General
    4Last post 16y ago

Tags for this Thread

None