No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then For Each subCtrl As Control In ctrl.Controls If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then MsgBox(subCtrl.Text) End If If subCtrl.GetType Is GetType(System.Windows.Forms.ComboBox) Then If subCtrl.GetType Is GetType(System.Windows.Forms.RadioButton) Then If CType(subCtrl.Controls("rbttnM"), RadioButton).Checked Then MsgBox("Male") End If If CType(subCtrl.Controls("rbttnF"), RadioButton).Checked Then MsgBox("Female") End … |
|
Re:
Group, you were very helpful to me in adding multiple textboxes, labels, etc., in my original post. If you would like to read through that, see http://www.daniweb.com/software-development/vbnet/threads/447985/creating-multiple-labels-textboxes-etc.-dynamically#post1934799. In a similar vein, I now want to dynamically add these multiple panels within a "main" panel, one at a time, with the … |