Home All Groups Group Topic Archive Search About

Help with Radio button loop

Author
28 Jan 2006 11:11 PM
DrinkyBanjo
Hello all.

I'm VERY new to VB .Net and I have a bit of a problem.  I need to write a
loop around radio buttons.  My program has three radio buttons that perform
calculations based on the same two number but the output is in different
formats.

So my question is how do I write an If around radio buttons?

Here is what I have so far.

Thanks in advance.

Tim


[attached file: program.txt]

Author
29 Jan 2006 3:20 AM
iwdu15
in the code window, do the calculations for each radio button inside of its
"Checked" Event
--
-iwdu15
Author
29 Jan 2006 8:19 AM
Cor Ligthert [MVP]
DrinkyBanjo,

You mean
If myRadioButton.checked = True then
or
If myRadioButton.checked = False

http://msdn2.microsoft.com/en-us/library/system.windows.forms.radiobutton.checked.aspx

I hope this helps,

Cor


Show quoteHide quote
"DrinkyBanjo" <timrossnospam@optonline.net> schreef in bericht
news:FSSCf.888$5z3.589@fe10.lga...
> Hello all.
>
> I'm VERY new to VB .Net and I have a bit of a problem.  I need to write a
> loop around radio buttons.  My program has three radio buttons that
> perform calculations based on the same two number but the output is in
> different formats.
>
> So my question is how do I write an If around radio buttons?
>
> Here is what I have so far.
>
> Thanks in advance.
>
> Tim
>
>
>
>
Author
29 Jan 2006 4:57 PM
DrinkyBanjo
Show quote Hide quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
news:ue1KZyKJGHA.3100@tk2msftngp13.phx.gbl...
> DrinkyBanjo,
>
> You mean
> If myRadioButton.checked = True then
> or
> If myRadioButton.checked = False
>
> http://msdn2.microsoft.com/en-us/library/system.windows.forms.radiobutton.checked.aspx
>
> I hope this helps,
>
> Cor
>
>
> "DrinkyBanjo" <timrossnospam@optonline.net> schreef in bericht
> news:FSSCf.888$5z3.589@fe10.lga...
>> Hello all.
>>
>> I'm VERY new to VB .Net and I have a bit of a problem.  I need to write a
>> loop around radio buttons.  My program has three radio buttons that
>> perform calculations based on the same two number but the output is in
>> different formats.
>>
>> So my question is how do I write an If around radio buttons?
>>
>> Here is what I have so far.
>>
>> Thanks in advance.
>>
>> Tim

I was able to get this working but in the end that is not what I did.  I
wanted to avoid code repetition but I wasn't able to do it successfully.

Looks like I will need to discuss with my teacher to see what they were
after.

Thanks!

Tim