G
Guest
group,
please help with the following codes below.
why would this not work... would it require casting/reflecting? if so, does
anyone show me the right codes?
Dim chk As System.Windows.Forms.CheckBox
If Not MsgBox("Are you sure you wish to clear?", MsgBoxStyle.YesNo +
MsgBoxStyle.Exclamation, "Clearing") = MsgBoxResult.Yes Then Exit Sub
For Each ctl In Me.Controls
If TypeName(ctl) = "GroupBox" Then
For Each chk In ctl.Controls
chk.Checked = False
Next
End If
Next
Please help.
Thanks in advance.
Ronin
please help with the following codes below.
why would this not work... would it require casting/reflecting? if so, does
anyone show me the right codes?
Dim chk As System.Windows.Forms.CheckBox
If Not MsgBox("Are you sure you wish to clear?", MsgBoxStyle.YesNo +
MsgBoxStyle.Exclamation, "Clearing") = MsgBoxResult.Yes Then Exit Sub
For Each ctl In Me.Controls
If TypeName(ctl) = "GroupBox" Then
For Each chk In ctl.Controls
chk.Checked = False
Next
End If
Next
Please help.
Thanks in advance.
Ronin