Hi,
I'm working on a checklist program and I want to use the contextmenu with
it.
For each checkpoint there is a textbox and when the user holds his stylus on
it he will get a contextmenu with the possible answers for that checkpoint.
These contextmenu's are with different answers for each point, so they are
created in the contextmenu_popup sub.
Some have 2 menu_items and some have 11.
something like:
Dim mnuItem As New MenuItem
If mnuTxtBox Is txt1 Then
cmThs.MenuItems.Clear()
mnuItem.Text = "Shelter"
cmThs.MenuItems.Add(mnuItem)
mnuItem.Text = "Building"
cmThs.MenuItems.Add(mnuItem)
mnuItem.Text = "Bsc"
cmThs.MenuItems.Add(mnuItem)
mnuItem.Text = "Anders"
cmThs.MenuItems.Add(mnuItem)
End If
Now I need to get the selected item through some kind of click_event.
How do I make one?
The basic idea is to write one sub in which is determent which menu was
shown and which item was tapped on.
thanks in advance!
Eric