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 › Get text from webbrowser... [solved]

Get text from webbrowser... [solved]

Posts 1–4 of 4 · Page 1 of 1
AC
AceKill3r
Get text from webbrowser... [solved]
I know i remember posting something similar and @Jason solved it for me. but i cannot find where it is..

How would i get text from a webbrowser .txt file..

(eg) webbrowser has the word "hi" and i want the label to have the same as the browser


I do remember some of the code something along the lines of

Code:
If WebBrowser1.DocumentText.ToString.ToLower = "Hi" Then
            Label2.Text = WebBrowser1.DocumentText.ToString.ToLower
        End If
but the label wont read it!

Any help?
#1 · 15y ago
NO
NOOB
Code:
If WebBrowser1.DocumentText.ToLower = "hi" Then
     Label2.Text = WebBrowser1.DocumentText.ToLower
End If
The string "Hi" has to match ToLower so instead it should be "hi". If you converted it ToUpper then you would do "HI". Also DocumentText is already a string so doing .ToString is unnecessary.

--

If the word "Hi" isn't the only string on the web page and you still need to check if it on the page you would do

Code:
If WebBrowser1.DocumentText.ToLower.Contains("hi") Then
     Label2.Text = WebBrowser1.DocumentText.ToLower
End If
#2 · 15y ago
AC
AceKill3r
I knew it was something like that, Thanks noob

but that doesnt work still, That code give's me the source of the webpage

edit 2: i ended up using
Code:
Dim myText As String = Me.WebBrowser1.Document.Body.InnerText
#3 · edited 15y ago · 15y ago
Cryptonic
Cryptonic
Quote Originally Posted by NOOB View Post
Code:
If WebBrowser1.DocumentText.ToLower = "hi" Then
     Label2.Text = WebBrowser1.DocumentText.ToLower
End If
The string "Hi" has to match ToLower so instead it should be "hi". If you converted it ToUpper then you would do "HI". Also DocumentText is already a string so doing .ToString is unnecessary.

--

If the word "Hi" isn't the only string on the web page and you still need to check if it on the page you would do

Code:
If WebBrowser1.DocumentText.ToLower.Contains("hi") Then
     Label2.Text = WebBrowser1.DocumentText.ToLower
End If
Thanks, I didn't know that, and I couldn't figure out why my text was always in caps.
#4 · 15y ago
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

  • Help (Get text from .php website) [solved]By BassSR in Visual Basic Programming
    19Last post 14y ago
  • [Solved]Clear text from textbox?By ppl2pass in Visual Basic Programming
    6Last post 16y ago
  • [SOLVED] What happense when ou get banned from COD6??By freakshow101 in Call of Duty Modern Warfare 2 Help
    2Last post 16y ago
  • [SOLVED] how to get unbanned from mw2By bryanboy48 in Call of Duty Modern Warfare 2 Help
    6Last post 16y ago
  • [SOLVED]is there anyone someone could help me get unbanned from mw2 multiplayerBy Devin7713 in Call of Duty Modern Warfare 2 Help
    8Last post 16y ago

Tags for this Thread

None