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]My Web Browser

[Help]My Web Browser

Posts 1–15 of 26 · Page 1 of 2
DE
Devient_
[Help]My Web Browser
well ive made by brwoser
its got all the average things
its got a type and search section
its got a Go Foward and back and refresh and stop
i want to know (with the tab tool) how to make it so when i click the button for a new tab
it creates a new tab
also how to make a custom homepage
thanks
i cna upload the project if needed
#1 · 16y ago
Invidus
Invidus
Okay dokes.

To add a new tab, just add this code on a button or whatever.

TabControl1.TabPages.Add("Whatever text you want here for the tab. ")
#2 · 16y ago
DE
Devient_
no i mean also when you create a new tab
you can type in the textbox it only works for the current tab only
#3 · 16y ago
Invidus
Invidus
Uhm let me try that..

Uhm... not sure on this one.. i can't remember i did this before..
#4 · edited 16y ago · 16y ago
DE
Devient_
thanks
but what you said worked
so thanks for that
#5 · 16y ago
Invidus
Invidus
lol no problems.
The deeper problems i'll let J-Deezy solve, i'm not 100% on it..
#6 · 16y ago
Jason
Jason
Uhh if you want a new textbox for each tab you'll have to add controls and shit, I'll give you some brief examples of it.

This is a very simple example of creating a new page and a new textbox in each page.

Declare globally:

[php]
Dim Tab As TabPage
Dim TxtBox As TextBox
Dim xi As Integer = 0
[/php]

Okay now

[php]

Private Sub AddTab(ByVal tControl As TabControl)

Tab = New TabPage
With Tab
.Name = "NewTab" & xi
.Text = "Whatever"
End With

TabControl1.Controls.Add(Tab)
Tab.Controls.Add(AddTextBox)

xi += 1

End Sub

Private Function AddTextBox() As TextBox

TxtBox = New TextBox
With TxtBox
.Name = "Box" & xi
.Location = New Point(25, 25)
End With

Return TxtBox

End Function
[/php]

Basically creates a dynamic tabpage with a textbox at the set location in the control. To use it, simply specify the tabcontrol to add the page to, i.e

[php]
AddTab(Me.TabControl1)
[/php]

Questions? Just ask.


EDIT

Hmm I was just thinking that's probably not exactly what you were asking as the textbox is generally separate from the tabs, change it up with a fully docked Webbrowser instead i.e

Globals:

[php]
Dim Tab As TabPage
Dim wBrowse As WebBrowser
Dim xi As Integer = 0
[/php]

[php]
Private Sub AddTab(ByVal tControl As TabControl)

Tab = New TabPage
With Tab
.Name = "NewTab" & xi
.Text = "Whatever"
End With

TabControl1.Controls.Add(Tab)
Tab.Controls.Add(NewBrowser)

xi += 1

End Sub

Private Function NewBrowser() As WebBrowser

wBrowse = New WebBrowser
With wBrowse
.Name = "Browser" & xi
.Dock = DockStyle.Fill
.Navigate("HOMEPAGE HERE")
End With

Return wBrowse

End Function
[/php]

And then when someone presses navigate, to tell which browser should do the navigating try this:

[php]
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
Dim DoBrowse As WebBrowser = GetBrowser()
DoBrowse.Navigate("http://www.mpgh.net")
End Sub

Private Function GetBrowser() As WebBrowser

Dim browser As WebBrowser

For Each c As Control In TabControl1.SelectedTab.Controls
If c.Name.StartsWith("Browser") Then
browser = c
End If
Next

Return browser

End Function
[/php]

In my case Button4 was the browse button.

Pretty messy but it works.
#7 · edited 16y ago · 16y ago
Invidus
Invidus
Nice one..
The problem with that though is that it dumps the textbox in a random place..
I guess you could be proactive and create millions of tabs that aren't visible built with textboxes until you click a button =D

Ooh and i've got a question -raises hand-

Functions?
I've read and heard of them, but i don't know the full explanation.
Is it like a global function where you can call it anywhere?
#8 · 16y ago
-E
-ExileD-



f
#9 · 16y ago
Invidus
Invidus
Uh..
What?
#10 · 16y ago
DE
Devient_
i did that on his topic and he is mad XD

Quote Originally Posted by J-Deezy View Post
Uhh if you want a new textbox for each tab you'll have to add controls and shit, I'll give you some brief examples of it.

This is a very simple example of creating a new page and a new textbox in each page.

Declare globally:

[php]
Dim Tab As TabPage
Dim TxtBox As TextBox
Dim xi As Integer = 0
[/php]

Okay now

[php]

Private Sub AddTab(ByVal tControl As TabControl)

Tab = New TabPage
With Tab
.Name = "NewTab" & xi
.Text = "Whatever"
End With

TabControl1.Controls.Add(Tab)
Tab.Controls.Add(AddTextBox)

End Sub

Private Function AddTextBox() As TextBox

TxtBox = New TextBox
With TxtBox
.Name = "Box" & xi
.Location = New Point(25, 25)
End With

Return TxtBox

End Function
[/php]

Basically creates a dynamic tabpage with a textbox at the set location in the control. To use it, simply specify the tabcontrol to add the page to, i.e

[php]
AddTab(Me.TabControl1)
[/php]

Questions? Just ask.
sorry but were do i put then
your to advanced for me :O
#11 · 16y ago
Invidus
Invidus
Okay, so put the declarations (at the top) under Public Class, or pretty much any blank space that isn't in a Sub/Function/Event/whatever.

Same thing With the next Sub and Function.

Then on the last bit of code.
Put that where you want to add the new tab.
#12 · 16y ago
-E
-ExileD-
Yeah exactly, just returning what you did to my thread.

No hard feelings
#13 · 16y ago
Invidus
Invidus
Guys, stay on topic.
Or i'll get Nextgen to ban yooh for trolling/trashing threads =P.
Its a valid reason, just because someone trashed your thread doesnt give you the reason to do it back.

Report it to a mod/staff.
Don't take your own actions that you deem appropriate.
#14 · 16y ago
Jason
Jason
I editted my above post, go look. It was bad before but i fixed it up.
#15 · 16y ago
Posts 1–15 of 26 · Page 1 of 2

Post a Reply

Similar Threads

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

Tags for this Thread

None