Click here to Skip to main content
16,005,206 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: tray icon query Pin
Russell'3-Aug-07 22:05
Russell'3-Aug-07 22:05 
Questionconst keyword Pin
lavanya812-Aug-07 20:09
lavanya812-Aug-07 20:09 
AnswerRe: const keyword Pin
Christian Graus2-Aug-07 20:33
protectorChristian Graus2-Aug-07 20:33 
AnswerRe: const keyword Pin
Luc Pattyn2-Aug-07 20:50
sitebuilderLuc Pattyn2-Aug-07 20:50 
QuestionUniversal Character Names Pin
pourang2-Aug-07 13:12
pourang2-Aug-07 13:12 
AnswerRe: Universal Character Names Pin
Luc Pattyn2-Aug-07 20:58
sitebuilderLuc Pattyn2-Aug-07 20:58 
QuestionMultiple Checkbox Controls Pin
BuckBrown2-Aug-07 12:13
BuckBrown2-Aug-07 12:13 
AnswerRe: Multiple Checkbox Controls Pin
Luc Pattyn2-Aug-07 12:58
sitebuilderLuc Pattyn2-Aug-07 12:58 
Hi,

there are two approaches I could recommend:

THE GRAPHICAL ONE

if the layout is such that a single rectangle could cover all the CheckBoxes
without containing anything else, just add a Panel to the form covering that
rectangular area, add all the checkboxes to the new Panel.

Now you can use a loop over all Controls inside that Panel.
If other Controls fall inside the Panel, you can still loop over them all,
but now you must check for the Control being a CheckBox.

And you must set up the Panel in such a way that it does not stand out
(unless that is exactly what you want; in that case you should consider a
GroupBox).

THE COLLECTION

You could set up a collection (say an array, a List, an ArrayList, ...)
that contains references to these checkboxes. If the checkboxes got added
using Visual Designer, an array (with an initializer) may be the easiest;
if they got added by code, a List or ArrayList would be easier.

Now you can easily loop over all these checkboxes.

Smile | :)


GeneralRe: Multiple Checkbox Controls Pin
BuckBrown2-Aug-07 13:04
BuckBrown2-Aug-07 13:04 
GeneralRe: Multiple Checkbox Controls Pin
BuckBrown3-Aug-07 5:57
BuckBrown3-Aug-07 5:57 
GeneralRe: Multiple Checkbox Controls Pin
Luc Pattyn3-Aug-07 6:42
sitebuilderLuc Pattyn3-Aug-07 6:42 
GeneralRe: Multiple Checkbox Controls Pin
BuckBrown3-Aug-07 7:31
BuckBrown3-Aug-07 7:31 
GeneralRe: Multiple Checkbox Controls Pin
BuckBrown3-Aug-07 6:57
BuckBrown3-Aug-07 6:57 
GeneralRe: Multiple Checkbox Controls Pin
Luc Pattyn3-Aug-07 8:00
sitebuilderLuc Pattyn3-Aug-07 8:00 
GeneralRe: Multiple Checkbox Controls Pin
BuckBrown3-Aug-07 9:37
BuckBrown3-Aug-07 9:37 
GeneralRe: Multiple Checkbox Controls Pin
Luc Pattyn3-Aug-07 10:04
sitebuilderLuc Pattyn3-Aug-07 10:04 
QuestionDialog box query [modified] Pin
dona jain1-Aug-07 19:46
dona jain1-Aug-07 19:46 
AnswerRe: Dialog box query Pin
Christian Graus1-Aug-07 23:42
protectorChristian Graus1-Aug-07 23:42 
QuestionWhat is special about Dispose() methods? Pin
BuckBrown1-Aug-07 5:02
BuckBrown1-Aug-07 5:02 
AnswerRe: What is special about Dispose() methods? Pin
iddqd5151-Aug-07 5:20
iddqd5151-Aug-07 5:20 
GeneralRe: What is special about Dispose() methods? Pin
BuckBrown1-Aug-07 8:42
BuckBrown1-Aug-07 8:42 
AnswerRe: What is special about Dispose() methods? Pin
Mark Salsbery1-Aug-07 5:46
Mark Salsbery1-Aug-07 5:46 
GeneralRe: What is special about Dispose() methods? Pin
BuckBrown1-Aug-07 8:43
BuckBrown1-Aug-07 8:43 
GeneralRe: What is special about Dispose() methods? Pin
Mark Salsbery1-Aug-07 10:00
Mark Salsbery1-Aug-07 10:00 
Questionregarding Dialog box Pin
dona jain1-Aug-07 3:01
dona jain1-Aug-07 3:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.