One way or another I need to link groupID (and one other integer) to the button I am dynamically adding.. any ideas?
What I can do;
AddHandler mybutt
My solution:
AddHandler menuItemYear.Items(i).MouseUp, Sub() menu_year(2019) Private Sub menu_year(ByVal intYear As Integer) 'do something End Sub