|
Point contextmenu1 to the control you want
1 ContextMenu1.MenuItems.Add (New MenuItem ("Copy", New EventHandler (AddressOf aa))) 'aa is the corresponding event
ContextMenu1.MenuItems.Add (New MenuItem ("Delete", New EventHandler (AddressOf bb)))) ’bb is the response event
2 Writing response events
private sub aa (byval sender as object, byval e as system.EventArgs)
'Compose what to do when you click "Copy"
end sub
private sub bb (byval sender as object, byval e as system.EventArgs)
'Compose what to do when you click "Delete"
end sub
Haha, hope i can help you |
|