VB控件的Visible属性
请教一下各位,我想用三个单选控制三个文本框的可见与不可见,代码如下:
Private Sub Option1_Click()
If Option1.Value = Ture Then
Text1.Visible = Ture
Text6.Visible = False
Text2.Visible = False
Else
Text1.Visible = False
Text6.Visible = Ture
Text2.Visible = Ture
End If
End Sub
----------------------------
Private Sub Option2_Click()
If Option2.Value = Ture Then
Text1.Visible = False
Text6.Visible = Ture
Text2.Visible = False
Else
Text1.Visible = Ture
Text6.Visible = False
Text2.Visible = Ture
End If
End Sub
----------------------------
Private Sub Option3_Click()
If Option3.Value = Ture Then
Text1.Visible = False
Text6.Visible = False
Text2.Visible = Ture
Else
Text1.Visible = Ture
Text6.Visible = Ture
Text2.Visible = False
End If
End Sub
但是不对,如果三个单选我一个都不点,那么三个文本框都能看的见,只要我点任何一个,三个文本框都一起消失,再也出不来,很郁闷啊,
[解决办法]
Ture -->TRUE
英语还是需要一点