I want a button pressed in one form to clear checkboxes in a groupbox in another form. How can I do this without having to clear each one individually?How can you clear all checkboxes in a groupbox in VB?
Hi
create a Uncheck butten
double click and put this
For Each item As ListViewItem In ListView1.Items
item.Checked = False
NextHow can you clear all checkboxes in a groupbox in VB?
Assuming you have a groupbox called groupBox and your checkboxes are not in another control in that groupbox (child of child of the groupbox).
foreach (Control child in groupBox.Controls)
if (child is CheckBox)
(child as CheckBox).Checked = false;
No comments:
Post a Comment