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]Checking Lines[Solved]

[Help]Checking Lines[Solved]

Posts 1–5 of 5 · Page 1 of 1
PP
ppl2pass
[Help]Checking Lines[Solved]
So i am trying to code this in richtextbox.text

Code:
If line1(in richtextbox) contains "xxxxx" And line2 contains "xxxx" And line3 contains "xxxx" Then

blah...
#1 · 16y ago
MJ
MJLover_2
Quote Originally Posted by ppl2pass View Post
So i am trying to code this in richtextbox.text

Code:
If line1(in richtextbox) contains "xxxxx" And line2 contains "xxxx" And line3 contains "xxxx" Then

blah...
Rich Text Box doesnot gives line numbers but gives Lines Text, but we can count lines by an integer variable.

Here's what you need to do:

Code:
Dim LineNumber as integer=1
For LineText as string in RichTextBox1.Text
If LineNumber = 1 Then
If LineTex*****ntains("xxxx") Then
'Blah Blah Blah
End If
End If
LineNumber+=1
Next
We counted the line numbers. And by checking the line number we can check that it contains certain text or not !!!

Hope this helps
#2 · 16y ago
NextGen1
NextGen1
Spam Removed, @ Godlike, Report it, posting spam in response to spam is still spam

@ MJ, if you want to have fun and write a thanks to your alt form your main account, send yourself a VM
#3 · 16y ago
Zoom
Zoom
Quote Originally Posted by MJLover_2 View Post
Rich Text Box doesnot gives line numbers but gives Lines Text, but we can count lines by an integer variable.

Here's what you need to do:

Code:
Dim LineNumber as integer=1
For LineText as string in RichTextBox1.Text
If LineNumber = 1 Then
If LineTex*****ntains("xxxx") Then
'Blah Blah Blah
End If
End If
LineNumber+=1
Next
We counted the line numbers. And by checking the line number we can check that it contains certain text or not !!!

Hope this helps
If I remember it correct that doesn't work if you only have 1 line... But i'm not sure.
#4 · 16y ago
MJLover
MJLover
Quote Originally Posted by hejsan View Post


If I remember it correct that doesn't work if you only have 1 line... But i'm not sure.
It will surely work. Tested on single line
You got me worried for a minute. lol
#5 · 16y ago
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

  • [Help]Check a Box[Solved]By ppl2pass in Visual Basic Programming
    6Last post 16y ago
  • [HELP] Check if internet is available[Solved]By blackgaming in Visual Basic Programming
    6Last post 15y ago
  • [Help]Add Listbox Items per line[Solved]By nathanael890 in Visual Basic Programming
    12Last post 15y ago
  • [Help] Checking a textbox for a word [solved]By T0P-CENT in Visual Basic Programming
    3Last post 15y ago
  • Help me to solve this ? :#By josias008 in Combat Arms Help
    9Last post 15y ago

Tags for this Thread

None