I created a new form and added a layout control with the same name as above, then dragged a bunch of controls into the layout panel, labels, buttons, checkboxes, list boxes etc.
I ran the following;
For Each ctl In FlowLayoutPanel1.Controls
If TypeOf ctl Is Button Then
Debug.WriteLine(ctl.name)
End If
Next
End Sub
And the buttons were correctly listed in the debug window. Noticed i commented out the
If ctl.text =
so may have something to do with
dsselectroom