24军71师图片:VB问题ka kak kak

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/11 03:47:13
为什么我用这代码
Private Sub Check1_Click(Index As Integer)
If Check1(0).Value = True Then
Text6.Text = True
Else
Text6.Text = False
End If
End Sub
text6.text只变一次,就不可以变第二次呢
我是VB初学的

你看一下 Check 控件的Value属性,里面是1、2、3的,并不是True Of False。改成:
Private Sub Check1_Click(Index As Integer)
If Check1(0).Value = 1 Then
Text6.Text = True
Else
Text6.Text = False
End If
End Sub
不过,你要Text6里的内容为True 或者 False吗?
这样有什么应用吗??做点实际点的工作,用来决定Text6.Enabled属性或者 Text6.Visible属性还差不多。