vb复选框如何把选中的都让一个文本框显示出来呢?
2个回答
展开全部
Private Sub Command1_Click()
Dim i As Integer
Text1.Text = ""
For i = 0 To Check1.Count - 1
If Check1(i).Value = 1 Then Text1.Text = Text1.Text & Check1(i).Caption & vbCrLf
Next
End Sub
Dim i As Integer
Text1.Text = ""
For i = 0 To Check1.Count - 1
If Check1(i).Value = 1 Then Text1.Text = Text1.Text & Check1(i).Caption & vbCrLf
Next
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Private Sub Check1_Click()
If Check1.Value = 1 Then
Text1.Text = Text1.Text & " " & Check1.Caption
End If
End Sub
Private Sub Check2_Click()
If Check2.Value = 1 Then
Text1.Text = Text1.Text & " " & Check2.Caption
End If
End Sub
Private Sub Check3_Click()
If Check3.Value = 1 Then
Text1.Text = Text1.Text & " " & Check3.Caption
End If
End Sub
是不是这样子啊
If Check1.Value = 1 Then
Text1.Text = Text1.Text & " " & Check1.Caption
End If
End Sub
Private Sub Check2_Click()
If Check2.Value = 1 Then
Text1.Text = Text1.Text & " " & Check2.Caption
End If
End Sub
Private Sub Check3_Click()
If Check3.Value = 1 Then
Text1.Text = Text1.Text & " " & Check3.Caption
End If
End Sub
是不是这样子啊
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询