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 › Code For: Button Click = Web Link

Code For: Button Click = Web Link

Posts 1–15 of 20 · Page 1 of 2
Katie_Perry
Katie_Perry
Code For: Button Click = Web Link
Visual basics 2008 Express Edition


Yes, ok lets say Button_1 i put on Windows Application, and whats the code, if i want it, when click lets say it opens Google

Thanks
#1 · 16y ago
LE
legendaryhack b leet
try

Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        System.Diagnostics.Process.Start("http://www.mpgh.net")
End Sub
I'm not to good with vb08, and can't test that.

I can guarantee
Code:
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Const SW_SHOWNORMAL = 1

Private Sub command1_Click()
      ShellExecute Me.hwnd, vbNullString, "http://www.mpgh.net/", vbNullString, "C:\", SW_SHOWNORMAL
End Sub
will work for vb6.0
#2 · edited 16y ago · 16y ago
Ugleh
Ugleh
what he said.
#3 · 16y ago
Katie_Perry
Katie_Perry
Thanks!

Wait the Thanks button is gone =X

Close please =D
#4 · 16y ago
LE
legendaryhack b leet
Refresh the page and it will be there

Although this is a secondary account so doesn't really matter.
#5 · 16y ago
JI
JIGS4W
Code:
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        WebBrowser1.Navigate(TextBox1.Text)
    End Sub
End Class
Ima beginner too . I just finish watching the tut video on it^
so im not 100% sure that it will work.
Im chooby in vb cuz i just started. i wanna learn more
#6 · edited 16y ago · 16y ago
K4GE
K4GE
Quote Originally Posted by randomhacker View Post
Code:
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        WebBrowser1.Navigate(TextBox1.Text)
    End Sub
End Class
Ima beginner too . I just finish watching the tut video on it^
so im not 100% sure that it will work.
Im chooby in vb cuz i just started. i wanna learn more
It will work like that,
but you need to add a webbrowser and a textbox first.
If you need any info on VB, or need some tutorials, PM me and ill be happy to help you out.
#7 · 16y ago
LE
legendaryhack b leet
What does the textbox do in that?

Do you like type the website name in it or something?
#8 · 16y ago
JI
JIGS4W

Here is my very crappy vb project. feel free to laugh, its my first vb ive ever done
btw its a program to browse websites with

Quote Originally Posted by K4GE View Post
It will work like that,
but you need to add a webbrowser and a textbox first.
If you need any info on VB, or need some tutorials, PM me and ill be happy to help you out.
Ill definitely PM you if I need help with vb lol
Quote Originally Posted by legendaryhack b leet View Post
What does the textbox do in that?

Do you like type the website name in it or something?
I think its for typing the website. Not sure... still learning.
#9 · edited 16y ago · 16y ago
LE
legendaryhack b leet
Looking at your picture, that would be a yes.
#10 · 16y ago
K4GE
K4GE
You type the website in the TextBox, and then click a button.
Then the button will 'navigate' the webbrowser to the text inside the textbox.
You can compare it with a normal webbrowser (like firefox, internet explorer, safari,etc..).
Look at this image i made:
[img]http://i463.photobucke*****m/albums/qq353/jordidepo/naamloos-1.jpg[/img]
I hope you understand it now. (:
#11 · 16y ago
LE
legendaryhack b leet
Button1 on firefox is the green arrow as such

But yes to the thread starter, what I posted is what you are looking for you can use this in a different instance
#12 · 16y ago
Zoom
Zoom
process.start("Http://Mpgh.net/")
#13 · 16y ago
XG
XGelite
Quote Originally Posted by legendaryhack b leet View Post
try

Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        System.Diagnostics.Process.Start("http://www.mpgh.net")
End Sub
I'm not to good with vb08, and can't test that.

I can guarantee
Code:
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Const SW_SHOWNORMAL = 1

Private Sub command1_Click()
      ShellExecute Me.hwnd, vbNullString, "http://www.mpgh.net/", vbNullString, "C:\", SW_SHOWNORMAL
End Sub
will work for vb6.0
btw if you want that vb6 command to work in vb2008 just replace command1 with button1 and replace Me.hwnd with Me.Handle ( handle is the vb.net form of hwnd)
#14 · 16y ago
LE
LegendaryAbbo
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    ShellExecute Me.Handle, vbNullString, "http://www.mpgh.net/", vbNullString, "C:\", SW_SHOWNORMAL
End Sub
So that?
#15 · 16y ago
Posts 1–15 of 20 · Page 1 of 2

Post a Reply

Similar Threads

  • Need code for buttonBy Mokou-Sama in Visual Basic Programming
    3Last post 15y ago
  • click this link so i can get nx for caBy farsight13 in General
    8Last post 17y ago
  • Click The Link For The Time Of Your Life!By -TM- in Spammers Corner
    0Last post 18y ago
  • Whats the code for a link lableBy zmansquared in Combat Arms Hack Coding / Programming / Source Code
    7Last post 16y ago
  • hi, can some1 make a cheat code or find a cheat code for me for this game i play onliBy CrUsHa in General Game Hacking
    37Last post 20y ago

Tags for this Thread

#button#click#code#link#web