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]Printing Web Page[Solved]

Exclamation[Help]Printing Web Page[Solved]

Posts 1–8 of 8 · Page 1 of 1
zmansquared
zmansquared
[Help]Printing Web Page[Solved]
Ok guys, i am making a web browser and i want to print the entire page of the web when i click button 2, here is my code and look at my error

[PHP]Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Shell ("rundll32.exe C:\WINDOWS\SYSTEM\MSHTML.DLL,PrintHTML") & _ Webbrowser1.url , vbMinimizedFocus

End Sub
End Class[/PHP]

#1 · 16y ago
NextGen1
NextGen1
Try this

Edit:

Modified it

Shell("rundll32.exe C:\WINDOWS\SYSTEM\MSHTML.DLL,PrintHTML Webbrowser.url", vbMinimizedFocus)


#2 · edited 16y ago · 16y ago
zmansquared
zmansquared
Nope, didnt work
#3 · 16y ago
NextGen1
NextGen1
Check my modification in my last post, Webbrowser was placed in appwin style part of the code, should be in the path part.

You may get a dll error, in which case, change system to system32

so

[php]
Shell("rundll32.exe C:\WINDOWS\SYSTEM32\MSHTML.DLL,PrintHTML Webbrowser.url", vbMinimizedFocus)
[/php]


#4 · edited 16y ago · 16y ago
zmansquared
zmansquared
Ok the error is gone, i put it into button 2. When i click it, it doesnt print the webpage i am on. help?
#5 · 16y ago
NextGen1
NextGen1
Out of curiosity , did you try

[php]
WebBrowser1.Print()
[/php]

?
#6 · 16y ago
zmansquared
zmansquared
Thanks. Answer solved

/close please
#7 · 16y ago
Blubb1337
Blubb1337
Webbrowser1.showprintdialog was it I guess, well already answered sorry for reposting ^.-
#8 · 16y ago
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

  • [Help]Print Text Box [Solved]By zmansquared in Visual Basic Programming
    7Last post 16y ago
  • [Help]Web browser[Solved]By Flash in Visual Basic Programming
    9Last post 16y ago
  • [Help] Program hangs when using web requests?[Solved]By master131 in Visual Basic Programming
    6Last post 15y ago
  • Helpful tool for translating web pagesBy dragon73 in Dragon Nest Discussions
    2Last post 15y ago
  • [HELP] Print Function & Print Preview[Solved]By Jàzzà_ in Visual Basic Programming
    3Last post 15y ago

Tags for this Thread

None