all groups > vb.net controls > november 2004 >
You're in the

vb.net controls

group:

RadioButton



RadioButton Stephen
11/23/2004 12:36:11 PM
vb.net controls: Greetings Folks

I have a series of radiobuttons( 1-19) that I want to reset to checked =
false without creating a command line for each individual button. I was
thinking of a for/next loop to increment the buttons but cant figure out how
make it work. Any Idea's?

Thanks
steve

Re: RadioButton Herfried K. Wagner [MVP]
11/23/2004 9:56:05 PM
"Stephen" <Stephefn@xjohnstontrading.com> schrieb:
[quoted text, click to view]

\\\
Private m_RadioButtons() As RadioButton = _
{ _
Me.RadioButton1, _
Me.RadioButton2, _
...
Me.RadioButtonn _
}
..
..
..
For Each RadioButton In m_RadioButtons
RadioButton.Checked = False
Next RadioButton
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
AddThis Social Bookmark Button