|
-
Aug 6th, 2006, 04:29 PM
#1
Thread Starter
Lively Member
tabbed webbrowser, need help!
Well, i decided to continue my learning of vb.net (2005) by creating a webbrowser. I got all the basic stuff in, pluss some neat extra settings untill i realized: "Hey, tabbed browsing is the only way to browse". And then i tried to implement it, but i just cant make it work.
I am having troubles with the following:
When i click the "new tab" button on my form, a new form comes up with a browser in it, but then the first one is left blank, as if the webbrowser control got moved.
I have no idea how to make it so that when you type the url in the textbox and hit go, the webbrowser in the active tabpage navigates.
If needed, i will post any code you like, but since its all screwed up anyways.. i am hoping on some valuable input..
Cheers!
-
Aug 6th, 2006, 06:43 PM
#2
Re: tabbed webbrowser, need help!
Ive done a tabbed webbrowser...Could you show us some code? The code for adding a new tab and such.
-
Aug 6th, 2006, 07:32 PM
#3
Re: tabbed webbrowser, need help!
I think you should upload your whole project, it looks like you have a serious problem with the basics
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Aug 6th, 2006, 10:17 PM
#4
Fanatic Member
Re: tabbed webbrowser, need help!
Try:
VB Code:
Dim tbNewTab As New TabPage("New Tab")
TabControl1.TabPages.Add(tbNewTab)
-
Aug 7th, 2006, 03:24 AM
#5
Thread Starter
Lively Member
Re: tabbed webbrowser, need help!
code for new tab:
VB Code:
Public i As Integer
Dim Browsercollection As New ArrayList
Dim w As New WebBrowser
Dim t As New TabPage
TextBox1.Width = (Me.Width / 2)
w.Dock = DockStyle.Fill
w.Navigate("about:blank")
t.Text = "Blankpage " & i
TabControl1.Controls.Add(t)
t.Controls.Add(w)
Browsercollection.Add(w)
i = i + 1
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|