G
george
I'm have a little trouble understanding how to do this, but what i wanna do is have it so when the user clicks on an item in the menustrip,
it activates the column click event in a listview that i have on the form. In VB6 it wasn't very hard, but VB.Net is bit different and can't
figureout how to do it.... Anyway, when the user clicks on the menustrip item:
Private Sub ToolStripMenuItem3_Click(ByVal _
sender As System.Object, ByVal e As _
System.EventArgs) Handles _
ToolStripMenuItem3.Click
'Code sends click event to column...
End Sub
It'll activate the column click event...
Private Sub lstvFiles_ColumnClick _
(ByVal sender As System.Object, _
ByVal e As System.Windows.Forms.ColumnClickEventArgs) _
Handles lstvFiles.ColumnClick
'Do whatever..
End Sub
I'd like to send '2' as the column being "clicked" (out of the 3 columns 0,1,2 that i have) when the user clicks the menu strip item and
having trouble figuring out what arguments i'm supposed to fill in for 'sender' and 'e'.
Any help would be appriciated.
-george
it activates the column click event in a listview that i have on the form. In VB6 it wasn't very hard, but VB.Net is bit different and can't
figureout how to do it.... Anyway, when the user clicks on the menustrip item:
Private Sub ToolStripMenuItem3_Click(ByVal _
sender As System.Object, ByVal e As _
System.EventArgs) Handles _
ToolStripMenuItem3.Click
'Code sends click event to column...
End Sub
It'll activate the column click event...
Private Sub lstvFiles_ColumnClick _
(ByVal sender As System.Object, _
ByVal e As System.Windows.Forms.ColumnClickEventArgs) _
Handles lstvFiles.ColumnClick
'Do whatever..
End Sub
I'd like to send '2' as the column being "clicked" (out of the 3 columns 0,1,2 that i have) when the user clicks the menu strip item and
having trouble figuring out what arguments i'm supposed to fill in for 'sender' and 'e'.
Any help would be appriciated.
-george