Article View: alt.pl.comp.lang.csharp
Article #382Re: GroupBox i kontrolki w nim
From: Marthy
Date: Mon, 12 Jan 2004 06:26
Date: Mon, 12 Jan 2004 06:26
22 lines
1527 bytes
1527 bytes
Na poczatek wstaw te kontrolki do tablicy
for (i=0; ...)
ar[i] = myCtrl;
a pozniej mozesz sobie je przegladac sekwencyjnie
for (i=0; ...)
if (ar[i].isChecked)
{}
pozdrowka
Marcin
> Jak odczyta� wszystkie kontrolki jakie umieszczone s� w GroupBoxie?
> Chodzi mi o to �e mam w nim 3 RadioButtony i w p�tli chc� odczyta� kt�ry
> jest Checked.
> Jak pobrac kontrolk� po indexie?
>
> Pseudo kod, ktory oczywiscie nie dziala:
> for (int i=0; i<groupBox.Controls.Count; i++){
> i tutaj co ma byc:
> groupBox.wszystkieKontrolkiDzieci.GetAt(i) as RadioButton).Checked
> }
Technical Details
Message-ID:
<btter0$4tl$1@atlantis.news.tpi.pl>Path:
mbox-mo1.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mailReferences:
<btrohk$odq$1@nemesis.news.tpi.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: "Marthy" <mar...@poczta.onet.pl> Newsgroups: alt.pl.comp.lang.csharp Subject: Re: GroupBox i kontrolki w nim Date: Mon, 12 Jan 2004 07:26:04 +0100 Organization: tp.internet - http://www.tpi.pl/ Lines: 24 Message-ID: <btter0$4tl$1@atlantis.news.tpi.pl> References: <btrohk$odq$1@nemesis.news.tpi.pl> NNTP-Posting-Host: 195.116.249.130 X-Trace: atlantis.news.tpi.pl 1073888929 5045 195.116.249.130 (12 Jan 2004 06:28:49 GMT) X-Complaints-To: use...@tpi.pl NNTP-Posting-Date: Mon, 12 Jan 2004 06:28:49 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit