[求助]toolbar问题
关于下面这段程序,为什么老执行第一个条件.思路时,当点击Buttons(7)时,检查声音,若有声音,则停止,若无声音,则开启声音Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Select Case Button.Index
.....
Case 7
If 0 < WindowsMediaPlayer1.settings.volume <= 100 Then
Toolbar1.Buttons(7).Caption = "声音"
WindowsMediaPlayer1.settings.volume = 0
Else
WindowsMediaPlayer1.settings.volume = 100
Toolbar1.Buttons(7).Caption = "静音"
End If
end select
end sub
[[italic] 本帖最后由 cq271359502 于 2007-12-27 14:58 编辑 [/italic]]