Results 1 to 9 of 9
  1. #1
    Laxitive's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    0

    Help with tabs in web browser

    I am making a web browser but could someone please explain to me how to add tabs to it please

  2. #2
    Pixie's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Pixie wird wieder steigen.
    Posts
    1,884
    Reputation
    22
    Thanks
    229
    My Mood
    Fine
    Quote Originally Posted by Laxitive View Post
    I am making a web browser but could someone please explain to me how to add tabs to it please
    Add a tab control
    Then click "edit tab pages" in the properties window

  3. #3
    Laxitive's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    0
    I don't get wat I am supposed to do after I add tab control and another question. I have more than 1 form and when I exit out of say like form 2 the text I entered into a textbox doesn't save. How do i make it so when i exit it saves?

  4. #4
    Iamazn1's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    407
    Reputation
    12
    Thanks
    50
    Add tab control
    Then, add 1 webbrowser for each tab you have. After that, just add a textbox+button
    Code:
    Webbrowser1/2/3/4/5/6.Navigate(TextBox1.Text)

  5. #5
    trevor206's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    324
    Reputation
    12
    Thanks
    107
    if you go on youtube some guy as a very good tut on this his name is like environmentalnerd or something but go find that.

  6. The Following 2 Users Say Thank You to trevor206 For This Useful Post:

    Laxitive (11-12-2009),stevethehacker (11-12-2009)

  7. #6
    stevethehacker's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    USA bitch
    Posts
    416
    Reputation
    14
    Thanks
    51
    My Mood
    Bored
    He has a cool channel

  8. #7
    Laxitive's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    5
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by trevor206 View Post
    if you go on youtube some guy as a very good tut on this his name is like environmentalnerd or something but go find that.
    thx a lot but do you have an answer to my second question?

  9. #8
    trevor206's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Posts
    324
    Reputation
    12
    Thanks
    107
    Quote Originally Posted by Laxitive View Post
    thx a lot but do you have an answer to my second question?
    its all in the video it here watch it

    [YOUTUBE]https://www.youtube.com/watch?v=Gd5xh_HF7EE[/YOUTUBE]

    just make everything he does in the vid then just copy paste the code.



    Code:
    Public Class Form1
    Dim int As Integer = 0
    
    Private Sub Loading(ByVal sender As Object, ByVal e As Windows.Forms.WebBrowserProgressChangedE ventArgs)
    ToolStripProgressBar1.Maximum = e.MaximumProgress
    ToolStripProgressBar1.Value = e.CurrentProgress
    End Sub
    
    Private Sub Done(ByVal sender As Object, ByVal e As Windows.Forms.WebBrowserDocumentComplete dEventArgs)
    TabControl1.SelectedTab.Text = CType(TabControl1.SelectedTab.Controls.I tem(0), WebBrowser).DocumentTitle
    ComboBox1.Text = CType(TabControl1.SelectedTab.Controls.I tem(0), WebBrowser).Url.ToString
    End Sub
    
    Form1_Load:
    Dim Browser As New WebBrowser
    TabControl1.TabPages.Add("New Page")
    Browser.Name = "Web Browser"
    Browser.Dock = DockStyle.Fill
    TabControl1.SelectedTab.Controls.Add(Bro wser)
    AddHandler Browser.ProgressChanged, AddressOf Loading
    AddHandler Browser.DocumentCompleted, AddressOf Done
    int = int + 1
    CType(TabControl1.SelectedTab.Controls.I tem(0), WebBrowser).GoHome()
    
    Add Tab:
    Dim Browser As New WebBrowser
    TabControl1.TabPages.Add("New Page")
    TabControl1.SelectTab(int)
    Browser.Name = "Web Browser"
    Browser.Dock = DockStyle.Fill
    TabControl1.SelectedTab.Controls.Add(Bro wser)
    AddHandler Browser.ProgressChanged, AddressOf Loading
    AddHandler Browser.DocumentCompleted, AddressOf Done
    int = int + 1
    CType(TabControl1.SelectedTab.Controls.I tem(0), WebBrowser).GoHome()
    
    Remove Tab:
    If Not TabControl1.TabPages.Count = 1 Then
    TabControl1.TabPages.RemoveAt(TabControl 1.SelectedIndex)
    TabControl1.SelectTab(TabControl1.TabPag es.Count - 1)
    int = int - 1
    End If
    
    Website Properties:
    CType(TabControl1.SelectedTab.Controls.I tem(0), WebBrowser).ShowPropertiesDialog
    
    Back:
    CType(TabControl1.SelectedTab.Controls.I tem(0), WebBrowser).GoBack()
    
    Forward:
    CType(TabControl1.SelectedTab.Controls.I tem(0), WebBrowser).GoForward()
    
    Refresh:
    CType(TabControl1.SelectedTab.Controls.I tem(0), WebBrowser).Refresh()
    
    Stop:
    CType(TabControl1.SelectedTab.Controls.I tem(0), WebBrowser).Stop()
    
    Home:
    CType(TabControl1.SelectedTab.Controls.I tem(0), WebBrowser).GoHome()
    
    Go:
    CType(TabControl1.SelectedTab.Controls.I tem(0), WebBrowser).Navigate(ComboBox1.Text)
    
    Timer1:
    ToolStripStatusLabel1.Text = CType(TabControl1.SelectedTab.Controls.I tem(0), WebBrowser).StatusText

  10. #9
    Pixie's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Pixie wird wieder steigen.
    Posts
    1,884
    Reputation
    22
    Thanks
    229
    My Mood
    Fine
    Quote Originally Posted by trevor206 View Post
    if you go on youtube some guy as a very good tut on this his name is like environmentalnerd or something but go find that.
    Yeah, if only he was on MPGH...

Similar Threads

  1. [Tutorial] How to make a Web Browser with Tabs!
    By DayumKen in forum Programming Tutorials
    Replies: 12
    Last Post: 11-06-2010, 09:07 PM
  2. [Help] Web browser Components[Solved]
    By Erinador in forum Visual Basic Programming
    Replies: 12
    Last Post: 06-08-2010, 09:23 AM
  3. Web browser help
    By zmansquared in forum Visual Basic Programming
    Replies: 27
    Last Post: 02-14-2010, 08:56 PM
  4. Help with alt tabbing
    By electrocurse in forum Combat Arms Help
    Replies: 24
    Last Post: 09-02-2009, 10:45 AM
  5. need help with alt+tab
    By walker in forum Gate To Heaven Hacks
    Replies: 7
    Last Post: 03-17-2006, 02:55 PM

Tags for this Thread