Results 1 to 2 of 2

Thread: Open link in new tab instead of current window

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2010
    Posts
    13

    Open link in new tab instead of current window

    Its pretty simple,

    Lets say i have a button, i use the code
    Code:
    CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate("http://www.google.com")
    this will open it in the existing tab.

    how do i make it open in a new tab instead?

  2. #2
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: Open link in new tab instead of current window

    WebBrowser.Navigate Method (Uri, Boolean) method

    From MSDN
    Loads the document at the location indicated by the specified Uri into a new browser window or into the WebBrowser control.

    Parameters

    url
    Type: System..::.Uri
    A Uri representing the URL of the document to load.

    newWindow
    Type: System..::.Boolean
    true to load the document into a new browser window; false to load the document into the WebBrowser control.
    Please mark you thread resolved using the Thread Tools as shown

Posting Permissions

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



Click Here to Expand Forum to Full Width