troubleshooting Question - GroupBox / Panel DataBinding and behavior

Avatar of Lenny Gray
Lenny GrayFlag for United States of America asked on
Visual Basic.NET* GROUPBOX* radio buttons
3 Comments1 Solution215 ViewsLast Modified:
I am working on a throw-away application as a self-training tool to simply understand VS2015/ I am an expert with VBA and MsAccess since 1991.

In Access, the group box was pretty slick. You add as many radio buttons, buttons or checkboxes into the group control and each of the controls within the group control were assigned a value that was handled by the group control. The group control was bound to a table element for fetching and putting the data.

However, I learned that the VB.NET panel / groupbox only permits radio buttons for selection where only one radio button is true and any given moment and the others are false where checkboxes inside the groupbox/ panel do not behave that way. That's OK with me.

In my application, I have a panel control that has three radio buttons. I would like to store the value of the tag of the chosen RadioButton control into a data element in my table.

The questions:
1. Can a panel control be bound to a table element? In other words, can a groupbox or panel store data?
2. How does the binding take place? (e.g. FormControlName.DataBindings.Add(....)  )
3. How is the form populated so that the correct radio button is true when the record is fetched and displayed on the form?
3. Can you provide me with sample code so that I can mimic it in my throwaway application?

Thanks in advance!
David Johnson, CD
The More I know, the more I don't know
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros