Results 1 to 4 of 4

Thread: Visual Basic web browser w. tabs

  1. #1
    Join Date
    Jun 2007
    Posts
    543
    Thanks
    3
    Thanked 78 Times in 78 Posts
    Blog Entries
    1

    Default Visual Basic web browser w. tabs

    Hi I am making a web browser in visual basic 2008(not "making", using web browser object). I need some help.
    1. I would like a more efficient way of changing the url. I know there is i just can't find it.
    Code:
    Private Sub Go_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Go.Click
            TabControl1.SelectedTab.Controls.Clear()
            Dim wbr = New WebBrowser
            wbr.Name = "WebBrowser" + TabControl1.SelectedIndex.ToString
            wbr.Dock = DockStyle.Fill
            wbr.Navigate(ComboBox1.Text)
            wbr.ContextMenuStrip = Right_Menu
            TabControl1.SelectedTab.Tag = wbr.Name
            TabControl1.SelectedTab.Controls.Add(wbr)
        End Sub
    2. For some reason the title does not display.
    Code:
    Private Sub NewTab_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NewTab.Click
            Dim wb = New WebBrowser
            Dim tb = New TabPage
            wb.Dock = DockStyle.Fill
            wb.ContextMenuStrip = Right_Menu
            wb.Name = "WebBrowser" + (TabControl1.TabCount + 1).ToString
            wb.Navigate("http://www.dynamicdrive.com")
            tb.Controls.Add(wb)
            tb.text = wb.DocumentTitle
            TabControl1.TabPages.Add(tb)
            TabControl1.SelectTab(TabControl1.TabCount - 1)
            If (TabControl1.TabCount = 2) Then
                DeleteTab.Enabled = True
            End If
        End Sub
    [Jasme Library (Javascript Motion Effects)] My Site
    /\/\@§†ê® §©®¡þ† /\/\@|{ê®
    There are 10 kinds of people in the world, those that understand binary and those that don't.

  2. #2
    Join Date
    Jun 2007
    Posts
    543
    Thanks
    3
    Thanked 78 Times in 78 Posts
    Blog Entries
    1

    Default

    please help
    [Jasme Library (Javascript Motion Effects)] My Site
    /\/\@§†ê® §©®¡þ† /\/\@|{ê®
    There are 10 kinds of people in the world, those that understand binary and those that don't.

  3. #3
    Join Date
    Jun 2007
    Posts
    543
    Thanks
    3
    Thanked 78 Times in 78 Posts
    Blog Entries
    1

    Default

    can anyone help? please.
    [Jasme Library (Javascript Motion Effects)] My Site
    /\/\@§†ê® §©®¡þ† /\/\@|{ê®
    There are 10 kinds of people in the world, those that understand binary and those that don't.

  4. #4
    Join Date
    Jun 2007
    Posts
    543
    Thanks
    3
    Thanked 78 Times in 78 Posts
    Blog Entries
    1

    Default

    i know it's possible, please can someone help.
    [Jasme Library (Javascript Motion Effects)] My Site
    /\/\@§†ê® §©®¡þ† /\/\@|{ê®
    There are 10 kinds of people in the world, those that understand binary and those that don't.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •