AddressOf with parameter

后端 未结 8 617
误落风尘
误落风尘 2021-01-07 23:33

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         


        
8条回答
  •  鱼传尺愫
    2021-01-08 00:17

    My solution:

    AddHandler menuItemYear.Items(i).MouseUp, Sub() menu_year(2019)
    
    Private Sub menu_year(ByVal intYear As Integer)
       'do something
    End Sub
    

提交回复
热议问题