Advanced? Webbrowser ContextMenu

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
11 posts Page 2 of 2
Contributors
User avatar
GaiaonlineHD
Member
Member
Posts: 40
Joined: Mon Jan 23, 2012 8:51 pm

This code isnt working :/
Code: Select all
    Private Sub mnuOpen_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuOpen.Click
        wb.Navigate(hEle.GetAttribute("href"))
    End Sub

    Private Sub mnuLinkLoc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuLinkLoc.Click
        Clipboard.SetText(hEle.GetAttribute("href"))
    End Sub

    Private Sub mnuSaveImg_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuSaveImg.Click
        Dim source As String = hEle.GetAttribute("src")
        Dim path As String = "C:\Images\"
        My.Computer.Network.DownloadFile(source, path)
    End Sub

    Private Sub mnuCopyImgLoc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuCopyImgLoc.Click
        Clipboard.SetText(hEle.GetAttribute("src"))
    End Sub

    Private Sub mnuOpenImg_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuOpenImg.Click
        wb.Navigate(hEle.GetAttribute("src"))
    End Sub
11 posts Page 2 of 2
Return to “Tutorials”