Marcia G Akins (09/05/2008)
And after your last reply, I looked at the ListView in Strataframe. I suggested you to look at the StrataFlix sample application which uses the new enhanced list.
It also had no RightCLick event that I could hook in to.
A single event, the MouseClick event is used to handle all this in .NET controls like this:
Private Sub lstServiceCalls_MouseClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles lstServiceCalls.MouseClick If e.Button = Windows.Forms.MouseButtons.Right Then '-- do your stuff here. End If
End Sub And if all you want is to show a shortcut menu (ContextMenuStrip in .NET) all you need to do is add a SF ThemedContextMenuStrip to your form, add all the items you want then add that menu to the form's property ContextMenuStrip and you are done, not need to manage it via the right click like in VFP.
BTW, StrataFlix Main Form also have a sample of a ThemedContextMenuStrip.