Hello, i need to add a menu item to a menu already created.
This needs to be done upon a certain action the user is doing.
Printable View
Hello, i need to add a menu item to a menu already created.
This needs to be done upon a certain action the user is doing.
Add to the parent, and then add a function to handle the menu press...
Dim mnuItemNotes As New MenuItem
mnuItemNotes = New MenuItem
mnuItemNotes.Text = "Add new note..."
mnuiNotes.MenuItems.Add(mnuItemNotes)
AddHandler mnuItemNotes.Click, AddressOf mnuItemNotes_Click
Public Sub mnuItemNotes_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Process_Order_Item_Notes(sender, lvSummary)
End Sub
:) thank you for the response, I figured it out, i think I found it on MSDN. Thank you that's exactlly what I did.