MrsMope987
Programmer
- Sep 27, 2007
- 23
Hello All,
I am attempting to loop through all controls on a form, find the panel controls and loop through those contorls. I also want to loop through the controls on a gorupbox and pull the item that is checked, if it is checked then I want to pull the tabIndex, Name, and Text to my dataset for a crystal report. This is what I have, but it isn't right
I am attempting to loop through all controls on a form, find the panel controls and loop through those contorls. I also want to loop through the controls on a gorupbox and pull the item that is checked, if it is checked then I want to pull the tabIndex, Name, and Text to my dataset for a crystal report. This is what I have, but it isn't right
Code:
ElseIf TypeOf ctl Is GroupBox Then
For Each grpCtl As Control In CType(ctl, GroupBox).Controls
If [b][blue]******I want it to say ; if radio button is checked then *****[/blue][/b]
str(0) = grpCtl.TabIndex
str(1) = grpCtl.Name.ToString
str(2) = grpCtl.Text
ds.Tables("OrderInfo").Rows.Add(str)
End If
Next