Click here to Skip to main content
15,917,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: A beginners question Pin
duncanmhor1-Nov-07 10:52
duncanmhor1-Nov-07 10:52 
GeneralRe: A beginners question Pin
NewToAspDotNet1-Nov-07 11:46
NewToAspDotNet1-Nov-07 11:46 
GeneralRe: A beginners question Pin
duncanmhor1-Nov-07 12:06
duncanmhor1-Nov-07 12:06 
GeneralRe: A beginners question Pin
Paul Conrad1-Nov-07 15:50
professionalPaul Conrad1-Nov-07 15:50 
QuestionAcces multiple components. Pin
ev00l1-Nov-07 4:45
ev00l1-Nov-07 4:45 
AnswerRe: Acces multiple components. Pin
Luc Pattyn1-Nov-07 5:23
sitebuilderLuc Pattyn1-Nov-07 5:23 
GeneralRe: Acces multiple components. Pin
ev00l1-Nov-07 6:26
ev00l1-Nov-07 6:26 
GeneralRe: Acces multiple components. Pin
Luc Pattyn1-Nov-07 7:05
sitebuilderLuc Pattyn1-Nov-07 7:05 
Hi,

you cannot add an array to a Panel or other Container, but you can add all the Controls
in the array to the Panel/Container, one by one. You could do that in the same loop
where you create them and add them to the array.

Controls are reference types, so when you call "new SomeControl" you create a SomeControl
and get a reference to it, which you can store multiple times, e.g. once in an array,
once in the Controls property of some Container (to make them show on your Form).

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google


QuestionVS05 Pin
Gene_Sheppard1-Nov-07 4:22
Gene_Sheppard1-Nov-07 4:22 
AnswerRe: VS05 Pin
led mike1-Nov-07 5:46
led mike1-Nov-07 5:46 
GeneralRe: VS05 Pin
mav.northwind1-Nov-07 7:19
mav.northwind1-Nov-07 7:19 
GeneralRe: VS05 Pin
led mike1-Nov-07 7:52
led mike1-Nov-07 7:52 
GeneralRe: VS05 Pin
mav.northwind1-Nov-07 8:48
mav.northwind1-Nov-07 8:48 
GeneralRe: VS05 Pin
led mike2-Nov-07 5:32
led mike2-Nov-07 5:32 
GeneralRe: VS05 Pin
mav.northwind2-Nov-07 9:52
mav.northwind2-Nov-07 9:52 
GeneralRe: VS05 Pin
led mike2-Nov-07 9:58
led mike2-Nov-07 9:58 
GeneralRe: VS05 Pin
mav.northwind2-Nov-07 10:07
mav.northwind2-Nov-07 10:07 
GeneralRe: VS05 Pin
led mike2-Nov-07 10:37
led mike2-Nov-07 10:37 
QuestionDeployment scenarios Pin
Symeonb1-Nov-07 4:14
Symeonb1-Nov-07 4:14 
AnswerRe: Deployment scenarios Pin
Justin Perez1-Nov-07 4:42
Justin Perez1-Nov-07 4:42 
GeneralRe: Deployment scenarios Pin
Symeonb5-Dec-07 23:02
Symeonb5-Dec-07 23:02 
QuestionCompact Flash port access? Pin
Honken69691-Nov-07 2:56
Honken69691-Nov-07 2:56 
QuestionSave a System.Drawing.Graphics graphic as *.bmp Pin
Manfr3d1-Nov-07 2:34
Manfr3d1-Nov-07 2:34 
AnswerRe: Save a System.Drawing.Graphics graphic as *.bmp Pin
pmarfleet1-Nov-07 3:13
pmarfleet1-Nov-07 3:13 
GeneralRe: Save a System.Drawing.Graphics graphic as *.bmp Pin
Manfr3d1-Nov-07 10:30
Manfr3d1-Nov-07 10:30 

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.