Hi,
I'm using vb.net(2005) and I want to run programs when I click on an Item in a ContextMenuStrip (CMS).
The Items for the CMS are added from a listbox. How can I find out which Item is clicked on? I have tried this with:
-----
Private Sub CMSIcon_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles CMSIcon.MouseClick
Call Shell("path", AppWinStyle.NormalFocus)
End Sub
-----
What has the path to be?
Thanks a lot
I'm using vb.net(2005) and I want to run programs when I click on an Item in a ContextMenuStrip (CMS).
The Items for the CMS are added from a listbox. How can I find out which Item is clicked on? I have tried this with:
-----
Private Sub CMSIcon_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles CMSIcon.MouseClick
Call Shell("path", AppWinStyle.NormalFocus)
End Sub
-----
What has the path to be?
Thanks a lot