vb中一个按钮能不能多次击而显示不同内容

2025-05-15 04:38:19
推荐回答(1个)
回答1:

当然可以!

Private Sub Command1_Click()
Static n
n = n + 1
If n > 4 Then n = 1 '假设最多4种
Command1.Caption = Choose(n, "a", "b", "c", "d")
End Sub