Open VB 2008 > New > Windows Form Application.
************************************************** ***************************
*Add this code to your 'forum class' code:
(VERY IMPORTANT)Code:Dim i As Integer = 1
************************************************** *****************************
*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:
************************************************** **********************************Code: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:
************************************************** *******************************Code: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:
************************************************** **********************************Code: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:
************************************************** **********************************************Code: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:
************************************************** ***********************************************Code: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:
************************************************** ************************************************** **Code:CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate(TextBox1.Text)
Create Buttons and name it to the name below and add their codes:
Back:
Forward:Code:CType (TabControl1.SelectedTab.Controls.Item(0), WebBrowser).goback
Stop:Code:CType (TabControl1.SelectedTab.Controls.Item(0), WebBrowser).gofoward
Refresh:Code:CType (TabControl1.SelectedTab.Controls.Item(0), WebBrowser).stop
Home:Code:CType (TabControl1.SelectedTab.Controls.Item(0), WebBrowser).refresh
************************************************** ************************************************** ****Code: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:
************************************************** ************************************************** ***********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:
Code:End
Original Here : Chimmy.Org - View topic - [Visual Basic .NET] Web browser Advanced
Results 1 to 11 of 11
- 22 Nov. 2009 09:56pm #1
[Visual Basic .NET] Web browser Advanced
Last edited by Eternal Darkness; 23 Nov. 2009 at 11:17pm.
- 23 Nov. 2009 02:46pm #2
This is.. how to make your own web browser, right.? o.0
- 23 Nov. 2009 02:57pm #3
- 23 Nov. 2009 03:10pm #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
- 23 Nov. 2009 03:24pm #5
- 23 Nov. 2009 03:26pm #6
Ok then, thanks for all the help. xP
- 23 Nov. 2009 03:26pm #7
- 23 Nov. 2009 04:28pm #8
@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.
- 23 Nov. 2009 11:21pm #9
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.
- 14 Dec. 2009 11:42pm #10
- 15 Dec. 2009 01:02am #11