vb 怎样把单选框选中的内容输入到text中

2025-04-09 14:37:23
推荐回答(1个)
回答1:

Private Sub Option1_Click()

If Option1.Value = True Then

Text1.Text = Option1.Caption

Else

Text1.Text = Option2.Caption

End If

End Sub

Private Sub Option2_Click()

If Option2.Value = True Then

Text1.Text = Option2.Caption

Else

Text1.Text = Option1.Caption

End If

End Sub