Results 1 to 5 of 5

Thread: Launch new(second)Browser window[Resolved]

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2002
    Posts
    434

    Launch new(second)Browser window[Resolved]

    Hello

    I have a webbrowser control in my app that navigates to a sight when opened.

    What I would like to be able to do is have a button that opens a second window to a different address and keeps the first window open on it's original page.

    Is this possible to do with the webbrowser control?

    I've tried using the show method but that just navigates the same window to the new address.

    Thanks

    David
    Last edited by David RH; Apr 5th, 2004 at 09:29 PM.

  2. #2
    Lively Member
    Join Date
    Mar 2004
    Location
    Newcastle
    Posts
    114
    just make another form ?

  3. #3
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431
    Here's some code explaining how to recreate a number of different forms out of the same original:

    VB Code:
    1. 'Setup: 1 form named Form1 with 1 command button named Command1
    2. Dim Formx() As Form1
    3.  
    4. Private Sub Command1_Click()
    5. ReDim Formx(1 To 1 + UBound(Formx))
    6.  
    7. Set Formx(UBound(Formx)) = New Form1
    8. Formx(UBound(Formx)).Show
    9. End Sub
    10.  
    11. Private Sub Form_Load()
    12. ReDim Formx(1 To 1) As Form1
    13. End Sub

    Remember to set all objects used to nothing when finished.
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    May 2002
    Posts
    434
    Thanks Jemidiah

    I'll give that a try.

    David

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    May 2002
    Posts
    434
    Cool

    It works.

    Thanks

    David

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