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
The below worked for me:
Dim bStart = New Button With {.Text = "START"} AddHandler bStart.Click, Function(sender, e) TriggerProcess(any Long value) Private Function TriggerProcess(ByVal paramName As Long) As Boolean ' any processing logic Return True End Function