无论如何都引用函数或私有子本身而不影响另一个?使用“我”运算符对我不起作用,因为请参阅主窗口
Private Function comboclean() As Boolean
???.items.clear()
return nothing
End function
Private Sub nAdult_SelectedIndexChanged(sender As Object, e As EventArgs) Handles nAdult.SelectedIndexChanged
comboclean()
End Sub
Private Sub nJunior_SelectedIndexChanged(sender As Object, e As EventArgs) Handles nJunior.SelectedIndexChanged
comboclean()
End Sub