Results 1 to 2 of 2

Thread: winsock chat

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2012
    Posts
    137

    winsock chat

    in winsock chat i have webbrowser1 as chat window so what i want to do is when i or other users enter www.google.com and that link is clicked my webbrowser1 shud not act to that link it shud instead load webbrowser2 for every link that is clicked from webbrowser1

  2. #2
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: winsock chat

    Trap the link in WebBrowser1_BeforeNavigate2

    Code:
    Private Sub WebBrowser1_BeforeNavigate2(ByVal pDisp As Object, URL As Variant, Flags As Variant, TargetFrameName As Variant, PostData As Variant, Headers As Variant, Cancel As Boolean)
     WebBrowser2.Navigate URL
    Cancel = True
    End Sub


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

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