Results 1 to 2 of 2
  1. #1
    hopefordope's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    Herndon,VA
    Posts
    264
    Reputation
    9
    Thanks
    86
    My Mood
    Psychedelic

    Arrow web browser help

    hello i am making a web browser and i wanted to know that how do i get the link of an object (it shows the link in a label) when my mouse hovers over it .
    thanks

    Press Thank You[IMG]https://i45.tinypic.com/2hg8w0n.jpghttps://img1.UploadScreensho*****m/images/main/2/3203234450.jpg[/IMG]










    My Releases
    Injector 3G
    Injector 2G
    Injector 1G
    Super Spammer
    CA Cleaner
    My Tutorials
    How to Make a real Injector(PerX)
    How to Make a Calculator(leeched)

  2. #2
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,134
    My Mood
    Dead
    Quote Originally Posted by hopefordope View Post
    hello i am making a web browser and i wanted to know that how do i get the link of an object (it shows the link in a label) when my mouse hovers over it .
    thanks
    Right now Web-Browser active X does not supports returning links when mouse is hovered on them. However, by using Regex expressions, you can extract all the H-Ref Links. If you want to extract them then add a listbox to the form, name it L and then use the following code on the browser's document_Completed event. The code as a whole will be then:


    Code:
    Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
            Dim matchlinks As String = "]*?HREF\s*=\s*[""']?([^'"" >]+?)[ '""]?[^>]*?>"
            Dim val As String = Regex.Match(WebBrowser1.DocumentText, matchlinks, RegexOptions.IgnoreCase).Value
            If Not l.Items.Contains(val) Then
                l.Items.Add(val)
            End If
        End Sub
    This is all I can think of right now !!

Similar Threads

  1. vb web browser help
    By swor15 in forum Visual Basic Programming
    Replies: 6
    Last Post: 12-15-2010, 08:30 PM
  2. [Help]Web browser[Solved]
    By Flash in forum Visual Basic Programming
    Replies: 9
    Last Post: 08-30-2010, 02:29 AM
  3. [Help] Web browser Components[Solved]
    By Erinador in forum Visual Basic Programming
    Replies: 12
    Last Post: 06-08-2010, 09:23 AM
  4. Web browser help
    By zmansquared in forum Visual Basic Programming
    Replies: 27
    Last Post: 02-14-2010, 08:56 PM
  5. Help with tabs in web browser
    By Laxitive in forum Visual Basic Programming
    Replies: 8
    Last Post: 11-12-2009, 11:56 PM