2015-10-03 64 views

回答

0

只需將您的代碼添加到控件的單擊事件。由於它是一個數組,因此被點擊的控件的索引將成爲事件處理函數的參數:

Private Sub txtInput_Click(Index as Integer) 
    If Index = 0 then 
    'code for first control 
    ElseIf Index = 1 then 
    'code for second control 
    Else 
    ' and so on .... 
    End If 
End Sub 
相關問題