I have a DataGrid and I want each of its cells to display its own customized ContextMenuStrip.
So I have a handler that listens to clicks on the datagrid. It opens an existing ContextMenuStrip, clears it and fills it with strings using
Me.ContextMenuStrip1.Items.Add(fileName)
So far so good. That works.
Then I have a handler that listens to
Handles ContextMenuStrip1.ItemClicked
and I want certain actions to be taken depending on which menu item is clicked. Here lies my problem. How do I find out which item was clicked?
I suppose the answer is real simple, but I cant seem to find it
So I have a handler that listens to clicks on the datagrid. It opens an existing ContextMenuStrip, clears it and fills it with strings using
Me.ContextMenuStrip1.Items.Add(fileName)
So far so good. That works.
Then I have a handler that listens to
Handles ContextMenuStrip1.ItemClicked
and I want certain actions to be taken depending on which menu item is clicked. Here lies my problem. How do I find out which item was clicked?
I suppose the answer is real simple, but I cant seem to find it