Click here to Skip to main content
16,006,475 members
Home / Discussions / C#
   

C#

 
GeneralRe: newbie in c# Pin
J4amieC15-Dec-05 21:51
J4amieC15-Dec-05 21:51 
GeneralRe: newbie in c# Pin
yaminilathatv15-Dec-05 22:27
yaminilathatv15-Dec-05 22:27 
GeneralRe: newbie in c# Pin
J4amieC16-Dec-05 0:25
J4amieC16-Dec-05 0:25 
GeneralRe: newbie in c# Pin
yaminilathatv16-Dec-05 21:55
yaminilathatv16-Dec-05 21:55 
QuestionSchema Pin
Mahi.Ragava15-Dec-05 18:00
Mahi.Ragava15-Dec-05 18:00 
QuestionCheckbox Arrays... Pin
flicktom15-Dec-05 17:48
flicktom15-Dec-05 17:48 
AnswerRe: Checkbox Arrays... Pin
flicktom15-Dec-05 18:26
flicktom15-Dec-05 18:26 
AnswerRe: Checkbox Arrays... Pin
J. Dunlap15-Dec-05 18:26
J. Dunlap15-Dec-05 18:26 
"control arrays" per se are not supported by the VS.NET designer. However, it's easy to manually build an array containing controls that are on your form:
CheckBox[] checkBoxes=new CheckBox[]{myCheckBox1, myCheckBox2, ...};


If you need dynamically created control arrays that will be resized at runtime to an arbitrary size, you will need to create the checkboxes manually and add them to a list:
List<CheckBox> checkBoxes = new List<CheckBox>();
for(int i=0;i<myCount;i++)
{
   CheckBox checkBox = new CheckBox();
   checkBox.Location = new Point(10,10+(20*i));
   checkBox.Size = new Size(50, 20);
   checkBox.TabIndex=i;
   checkBox.Text="CheckBox "+i.ToString();
   panel.Controls.Add(checkBox);
   checkBoxes.Add(checkBox);
}

QuestionHit testing problem Pin
t800t815-Dec-05 15:44
t800t815-Dec-05 15:44 
AnswerRe: Hit testing problem Pin
Heath Stewart15-Dec-05 21:35
protectorHeath Stewart15-Dec-05 21:35 
GeneralRe: Hit testing problem Pin
t800t815-Dec-05 22:01
t800t815-Dec-05 22:01 
Question[URGENT] REGEX question Pin
Sam 200615-Dec-05 15:20
Sam 200615-Dec-05 15:20 
AnswerRe: [URGENT] REGEX question Pin
Christian Graus15-Dec-05 16:12
protectorChristian Graus15-Dec-05 16:12 
Questionopen an executable file on remote machine using WMI Pin
Erick Shuai15-Dec-05 15:12
Erick Shuai15-Dec-05 15:12 
AnswerRe: open an executable file on remote machine using WMI Pin
Dave Kreskowiak15-Dec-05 16:22
mveDave Kreskowiak15-Dec-05 16:22 
QuestionExists an interface for Parse(string value) method and ToString(string format)? Pin
machocr15-Dec-05 14:21
machocr15-Dec-05 14:21 
AnswerRe: Exists an interface for Parse(string value) method and ToString(string format)? Pin
[Marc]15-Dec-05 14:46
[Marc]15-Dec-05 14:46 
GeneralRe: Exists an interface for Parse(string value) method and ToString(string format)? Pin
machocr15-Dec-05 17:31
machocr15-Dec-05 17:31 
GeneralRe: Exists an interface for Parse(string value) method and ToString(string format)? Pin
S. Senthil Kumar15-Dec-05 20:45
S. Senthil Kumar15-Dec-05 20:45 
GeneralRe: Exists an interface for Parse(string value) method and ToString(string format)? Pin
machocr16-Dec-05 10:47
machocr16-Dec-05 10:47 
QuestionATTACHING DATABASE FILE Pin
Bagie15-Dec-05 14:08
Bagie15-Dec-05 14:08 
AnswerRe: ATTACHING DATABASE FILE Pin
Curtis Schlak.15-Dec-05 15:21
Curtis Schlak.15-Dec-05 15:21 
GeneralRe: ATTACHING DATABASE FILE Pin
Bagie16-Dec-05 12:52
Bagie16-Dec-05 12:52 
GeneralRe: ATTACHING DATABASE FILE Pin
Curtis Schlak.17-Dec-05 4:34
Curtis Schlak.17-Dec-05 4:34 
GeneralRe: ATTACHING DATABASE FILE Pin
Bagie17-Dec-05 11:12
Bagie17-Dec-05 11:12 

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.