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 › Web browser help

ExclamationWeb browser help

Posts 1–15 of 28 · Page 1 of 2
zmansquared
zmansquared
Web browser help
Hey guys, this is nothing related to hacking. I am on a high school robotics team and i am making us a web browser. So i have a few questions

1. I made a web browser, and added a link label. when i click the link it open a mozzila firefox page to the link. I want to site to open in my browser.

How would i do that? (code is WebBrowser1.Navigate(TextBox1.Text)) for browser

2. If the user goes to a site on my browser and gets a pop up, the pop up open in firefox. How would i make it either open in my browser? or in a new window in my browser?

Any help is appreciated. Thanks
#1 · 16y ago
Obama
Obama
Ill ask Arun, so basically you want to set your browser as the default browser. Correct?
#2 · 16y ago
zmansquared
zmansquared
I made a web browser, when button1 is clicked it goes to the url. How can i make it search when i hit the enter key? right now i have to click on the actually go button. whats the code?

Thanks.

Nah, I want to make sure everything runs through my browser and DOES NOT auto open ie or firefox.
#3 · edited 16y ago · 16y ago
Obama
Obama
Quote Originally Posted by zmansquared View Post
Nah, I want to make sure everything runs through my browser and DOES NOT auto open ie or firefox.
Thats what I just said and FYI I merged your threads, theres no need to make 2 threads for 2 questions.
#4 · 16y ago
zmansquared
zmansquared
LOl, thanks
#5 · 16y ago
Lolland
Lolland
1:
Under linklabel.click:
Webbrowser1.navigate("url here")

2: Something with Javascript I believe, I might work on it later.
#6 · 16y ago
zmansquared
zmansquared
sweet thanks
#7 · 16y ago
NextGen1
NextGen1
Webbrowser Control has a "New_Window" extension, which allows you to control the new window.
#8 · 16y ago
Blubb1337
Blubb1337
Quote Originally Posted by zmansquared View Post
I made a web browser, when button1 is clicked it goes to the url. How can i make it search when i hit the enter key? right now i have to click on the actually go button. whats the code?

Thanks.

Nah, I want to make sure everything runs through my browser and DOES NOT auto open ie or firefox.
Code:
 Private Sub TextBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown
        If (e.KeyCode = Keys.Enter) Then
            Button1_Click(sender, e)
        End If
    End Sub
#9 · 16y ago
NextGen1
NextGen1
Quote Originally Posted by Blubb1337 View Post
Code:
 Private Sub TextBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown
        If (e.KeyCode = Keys.Enter) Then
            Button1_Click(sender, e)
        End If
    End Sub
I think he wants his link to open in "His Browser" instead of the default browser, which requires nothing more then generating a New Window and WebBrowser upon button click
#10 · 16y ago
Blubb1337
Blubb1337
My post related to this quotation:

I made a web browser, when button1 is clicked it goes to the url. How can i make it search when i hit the enter key? right now i have to click on the actually go button. whats the code?
#11 · 16y ago
zmansquared
zmansquared
OK the enter button question is fixed.

NEW QUESTION : when a website open a pop up, right now it open in firefox. I want the pop to open in my browser.

code for that?
#12 · 16y ago
NextGen1
NextGen1
'A new window will be triggered when a link is clicked
'e.cancel will stop your default browser from opening

Code:
Private Sub WebBrowser1_NewWindow(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles WebBrowser1.NewWindow
 
Dim mybr As HtmlElement = WebBrowser1.Document.ActiveElement
Dim tlink As String = mybr.GetAttribute("href")       

        Dim newweb As New Form1
        newweb.Show()
        newweb.WebBrowser1.Navigate(tlink)

        
        e.Cancel = True
    End Sub
With this code whenever you click a link that opens _Blank / _New or if you right click and open link in new window , it will popup a form (copy of form1 in this case) and display the contents.
#13 · edited 16y ago · 16y ago
zmansquared
zmansquared
e.Cancel = True

is not a member or something.

say you go to a site in my browser, then a pop up comes up it will open in ie or fox. i want it to open in my brower (the pop up)
#14 · 16y ago
zmansquared
zmansquared
ok it works but when the new page trys to open i get an IE script error

also if i right click a link while using my browser and click open in new tab i get a script error
#15 · edited 16y ago · 16y ago
Posts 1–15 of 28 · Page 1 of 2

Post a Reply

Similar Threads

  • web browser helpBy hopefordope in Visual Basic Programming
    1Last post 16y ago
  • vb web browser helpBy swor15 in Visual Basic Programming
    6Last post 15y ago
  • Help with tabs in web browserBy Laxitive in Visual Basic Programming
    8Last post 16y ago
  • [Help] Web browser Components[Solved]By Erinador in Visual Basic Programming
    12Last post 16y ago
  • [Help]Web browser[Solved]By Flash in Visual Basic Programming
    9Last post 16y ago

Tags for this Thread

None