4
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by codeorder
0

See if this helps.

Public Class Form1
    Private WithEvents cmCool As New ContextMenuStrip
    Private sTemp As String = "myCool.exe"

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        With WebBrowser1
            .IsWebBrowserContextMenuEnabled = False '// disable WebBrowser ContextMenu.
            cmCool.Items.Add(sTemp) '// add item to your ContextMenu.
            .ContextMenuStrip = cmCool '// set ContextMenu to WebBrowser.
        End With
    End Sub

    Private Sub _cmCool_ItemClicked(ByVal sender As Object, ByVal e As System.Windows.Forms.ToolStripItemClickedEventArgs) Handles cmCool.ItemClicked
        Select Case e.ClickedItem.Text
            Case sTemp
                Process.Start("C:\Users\codeorder\Desktop\vb.net\b.tches.worth.loving\b.tches.worth.loving\bin\Debug\b.tches.worth.loving.exe")
        End Select
    End Sub
End Class
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.