Let’s say I have a web form with 7 related check boxes (corresponding to day of week) and 3 for something else . How would I hide the the 7 without referencing each one individually?
Thanks
Let’s say I have a web form with 7 related check boxes (corresponding to day of week) and 3 for something else . How would I hide the the 7 without referencing each one individually?
Thanks
Put them on a RectControl or in a GroupBox and hide the parent.
That is a solution however it was a hypothetical question. What if I want to iterate and get their values?
Public Function GetCheckboxesFrom(rect As WebRectangle) As WebCheckbox()
// Pass a rectangle containing checkboxes
// Get an Array of those WebCheckbox objects
Var checkBoxesList() As WebCheckbox
For i As Integer = 0 to rect.LastControlIndex
Var control As WebControl = rect.ControlAt(i)
If control isA WebCheckbox Then checkBoxesList.Add WebCheckBox(control)
Next
Return checkBoxesList
End Function
Rick! Thanks for the example, this is exactly what I was looking for!