# Re: 请问如何使commandbutton第一次按下后出现Labbel(0),第二次按下后出现Label(1)

Posted by 小v on July 17, 1999 at 08:47:28:

In Reply to: 请问如何使commandbutton第一次按下后出现Labbel(0),第二次按下后出现Label(1) posted by HaHa on July 17, 1999 at 00:28:58:

: private cub command1_click()
: Label(0).visibel=true
: Label(1).visibel=false
: 第一次的Label(0)可以显示,但是第二次按下我希望
: 可以将Label(0)隐藏起来,然后Label(1)出现。

假设label1()有个五个:
dim i as integer

Private sub Form_Load()
i=5
End sub
Private sub command1_click()
dim j as integer
for j=0 to label1.count-1
label1(j).visible=false
next
label1(i mod 5).visible=true
i=i+1
End sub

Follow Ups: