帮忙看下我这程序 怎还么开始的时候OptionButton是有一个被选中呢

[复制链接]
查看11 | 回复1 | 2010-9-16 00:24:53 | 显示全部楼层 |阅读模式
Private Sub Form_Load()
Picture1.Visible = False
Picture2.Visible = False
Picture3.Visible = False
Text1.Visible = False
Text2.Visible = False
Text3.Visible = False
Option1.Value = False
Option2.Value = False
Option3.Value = False
End Sub
Private Sub Option1_Click()
Picture1.Visible = True
Picture2.Visible = False
Picture3.Visible = False
Text1.Visible = True
Text2.Visible = False
Text3.Visible = False
Text1.Text = "1"
End Sub
Private Sub Option2_Click()
Picture2.Visible = True
Picture1.Visible = False
Picture3.Visible = False
Text2.Visible = True
Text1.Visible = False
Text3.Visible = False
Text2.Text = "2"
End Sub
Private Sub Option3_Click()
Picture3.Visible = True
Picture2.Visible = False
Picture1.Visible = False
Text3.Visible = True
Text2.Visible = False
Text1.Visible = False
Text3.Text = "3"
End Sub

回复

使用道具 举报

千问 | 2010-9-16 00:24:53 | 显示全部楼层
看起来没问题。可以再加个OptionButton并设置为选中和不显示就行了。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行