-1
我想清除这种形式的数据。 你能告诉我这段代码有什么问题吗?清除表单中的数据。 Visual Basic
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim ctrl As Control
For Each ctrl In Me.Controls
If TypeOf ctrl Is RadioButton Then
RadioButton2.Checked = False
End If
Next
End Sub
不工作。这个看起来很正常的代码不起作用。 ElseIf TypeOf ctrl是RadioButton Then CType(ctrl,RadioButton).Checked = False End If – Hfirst