A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

[Visual Basic .NET] Web browser Advanced

2.1k views · started by Eternal Darkness ·
#1
[Visual Basic .NET] Web browser Advanced
Open VB 2008 > New > Windows Form Application.
*****************************************************************************
*Add this code to your 'forum class' code:
Dim i As Integer = 1

(VERY IMPORTANT)
*******************************************************************************
*Add Menu Strip.
Name it what you ever want!
Add to it:
New Tab
Remove Tab
Properties
Exit
********************************************************************************
*Insert a tab control (in the tools menu) and (cover whole form)
**************************************************************************
*Tab control > Options >remove all tabs.
************************************************************************************
*Insert a button and name it 'Add Tab'
Put this code in the button:

Dim Browse As New WebBrowser
TabControl1.TabPages.Add(1, "Page " & i)
TabControl1.SelectTab(i * 1)
Browse.Name = "wb"
Browse.Dock = DockStyle.Fill
TabControl1.SelectedTab.Controls.Add(Bro wse)
i = i + 1

************************************************************************************
*On your forum go to File (That you created) > Add Tab (Click on it to go to its codes)
Add this to the Codes:

Dim Browse As New WebBrowser
TabControl1.TabPages.Add(1, "Page " & i)
TabControl1.SelectTab(i * 1)
Browse.Name = "wb"
Browse.Dock = DockStyle.Fill
TabControl1.SelectedTab.Controls.Add(Bro wse)
i = i + 1

*********************************************************************************
*Add this code to Forum1 Load:

Dim Browse As New WebBrowser
TabControl1.TabPages.Add(1, "Page " & i)
TabControl1.SelectTab(i * 1)
Browse.Name = "wb"
Browse.Dock = DockStyle.Fill
TabControl1.SelectedTab.Controls.Add(Bro wse)
i = i + 1

************************************************************************************
*Add a Button and name it Remove Tab.
Then Add this code to it:

TabControl1.TabPages.RemoveAt(TabControl 1.SelectedIndex)
TabControl1.SelectTab(TabControl1.TabPag es.Count * 1)
i = i * 1

************************************************************************************************
*Go to File (The one on the form) > Click On remove Tab to get the codes then add this:

TabControl1.TabPages.RemoveAt(TabControl 1.SelectedIndex)
TabControl1.SelectTab(TabControl1.TabPag es.Count * 1)
i = i * 1

*************************************************************************************************
*Add a Button and call it Go and Next to it or before it create a TextBox.
Code it:

CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate(TextBox1.Text)

******************************************************************************************************
Create Buttons and name it to the name below and add their codes:

Back:

CType (TabControl1.SelectedTab.Controls.Item(0), WebBrowser).goback


Forward:

CType (TabControl1.SelectedTab.Controls.Item(0), WebBrowser).gofoward


Stop:

CType (TabControl1.SelectedTab.Controls.Item(0), WebBrowser).stop


Refresh:

CType (TabControl1.SelectedTab.Controls.Item(0), WebBrowser).refresh


Home:

CType (TabControl1.SelectedTab.Controls.Item(0), WebBrowser).gohome

********************************************************************************************************
Now go to File (The one on you form) > Properties >clickon it and get the codes then add this code:

CType(TabControl1.SelectedTab.Controls.I tem(0), WebBrowser).ShowPropertiesDialog()

***************************************************************************************************************
Now go to File (The one on you form) > Exit >click on it and get the codes then add this code:

End



Original Here : Chimmy.Org - View topic - [Visual Basic .NET] Web browser Advanced
#2
This is.. how to make your own web browser, right.? o.0
#3
This is.. how to make your own web browser, right.? o.0


Yes, in Visual Basic (Just making sure you know its for visual Basic)
#4
Of course i know, xD
Anyway, is there anyway to edit a certain web browser that i already have.? o.0
Like Google chrome.? o.0
#5
Of course i know, xD
Anyway, is there anyway to edit a certain web browser that i already have.? o.0
Like Google chrome.? o.0


Yeah you couldn't do that very easily, sorry but you should just start your own if you are going to do so...
#6
Ok then, thanks for all the help. xP
#8
Yeah you couldn't do that very easily, sorry but you should just start your own if you are going to do so...


@Kun and Eternal - You could easily edit them if you found out what language they wrote it in. Bet it's C++ or maybe even C Sharp. You would just need a decompiler for it and then write it anyway you want to.

@ Eternal - Nice tutorial. I suggest renaming the controls for better programming practices. example - txtusername,txtpassword,cmdlogin,cmdadd,cmddelete, tmrStart,tmrStop, intIndex, intNumber, strHTML, strThis, ect.... It makes it look cleaner and nicer. Also tab out your codes in which if it's .net it should do that automatically for you.
#9
Chad wrote:
@Kun and Eternal - You could easily edit them if you found out what language they wrote it in. Bet it's C++ or maybe even C Sharp. You would just need a decompiler for it and then write it anyway you want to.

@ Eternal - Nice tutorial. I suggest renaming the controls for better programming practices. example - txtusername,txtpassword,cmdlogin,cmdadd,cmddelete, tmrStart,tmrStop, intIndex, intNumber, strHTML, strThis, ect.... It makes it look cleaner and nicer. Also tab out your codes in which if it's .net it should do that automatically for you.


Well I just don't know how to get vb script / c++ script or whatever from a decompiled program... Otherwise I would have suggested it and it would have been super simple...

I just typed it in, ^^

Sorry, I switched computers and don't have "vb.net" but I do have vb8 which has a lot of common functions as vb.net.
#10
This is.. how to make your own web browser, right.? o.0


Not exactly, its really internet explorer, but this makes your program be able to access the web.
#11
iFresh wrote:
Not exactly, its really internet explorer, but this makes your program be able to access the web.


Internet Explorer is a web browser!

Internet Explorers are referred to as web browsers.