I have a class which contains a very simple routine which needs to get the status of some check boxes on my Form (i.e, checked, unchecked).
I am unable to get the status - I will always get "FALSE" returned - even if the check boxes are checked.
(Please see my attached code)
If I'll put this routine inside my Form1, it will work - how can I solve this?
Dim ctrl As Control
Dim checkbox As CheckBox
For Each ctrl In form1.GroupBox2.Controls
if typeof(ctrl) Is Checkbox then
checkbox = ctrl