Use of radio buttons

  • Thread starter Thread starter Spence
  • Start date Start date
S

Spence

Hey fellows,

I feel stupid asking this question because I'm sure the answer is so simple
but it eludes me. In VB6 a standard practice was to but multiple radio
buttons into a groupbox (called a frame) and assign each of the bottons a
value. The frame then had the value of the button that was clicked and it's
value could be bound to a data source.

How the heck do you do that in VB7? There is a GroupBox control and a Panel
control that will allow only one radio button to be the one selected but how
does one bind that value into a database?

I have an application involving persons and I want to have a GroupBox that
has two option buttons on it, Male and Female and have the result be stored
in as database as Male=0, Female = 1 in a bit column.

Can anyone point me in the right direction as to how to do this simple
thing?

Many thanks.

Spence
 
Spence,

Another option is to use a third party control like the Infragistics
OptionSet control which presents a set of radio buttons in various
configurations.

-Sam Matzen
 
Back
Top