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

Re: Use of radio buttons by Miha

Miha
Sun Jul 25 15:13:12 CDT 2004

Hi Spence,

You can't. However, here is a workaround:
http://www.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=vBhoBRlZDHA.2108%40cpmsftngxa06.phx.gbl&rnum=5&prev=/groups%3Fas_q%3Dbind%2520radiobutton%26safe%3Dimages%26ie%3DUTF-8%26as_ugroup%3D*dotnet*%26lr%3D%26hl%3Den
or another one:
http://www.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=ecjm9bKsCHA.1776%40TK2MSFTNGP10&rnum=9&prev=/groups%3Fas_q%3Dbind%2520radiobutton%26safe%3Dimages%26ie%3DUTF-8%26as_ugroup%3D*dotnet*%26lr%3D%26hl%3Den

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

"Spence" <sericks@uci.net> wrote in message
news:OURTH$ncEHA.3040@TK2MSFTNGP10.phx.gbl...
> 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
>
>



Re: Use of radio buttons by Samuel

Samuel
Sun Jul 25 17:15:24 CDT 2004

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


"Spence" <sericks@uci.net> wrote in message
news:OURTH$ncEHA.3040@TK2MSFTNGP10.phx.gbl...
> 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
>
>