Click here to Skip to main content
15,923,689 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to excute string formula in c# Pin
Stefan Troschuetz17-Dec-06 21:30
Stefan Troschuetz17-Dec-06 21:30 
QuestionDoes Array.Clear use default? Pin
Andrew Shapira17-Dec-06 19:00
Andrew Shapira17-Dec-06 19:00 
AnswerRe: Does Array.Clear use default? Pin
AB777117-Dec-06 23:03
AB777117-Dec-06 23:03 
QuestionGeneric Error Pin
sathishtl00717-Dec-06 18:25
sathishtl00717-Dec-06 18:25 
AnswerRe: Generic Error Pin
Bhupi Bhai17-Dec-06 20:18
Bhupi Bhai17-Dec-06 20:18 
AnswerRe: Generic Error Pin
Pete O'Hanlon17-Dec-06 22:34
mvePete O'Hanlon17-Dec-06 22:34 
QuestionControl arrays in C# Pin
OmicronTheta17-Dec-06 11:56
OmicronTheta17-Dec-06 11:56 
AnswerRe: Control arrays in C# Pin
Luis Alonso Ramos17-Dec-06 16:32
Luis Alonso Ramos17-Dec-06 16:32 
As far as I know, you cannot do it in the designer. Buy you can do it by code:
Label[] lbls = new Label[10];
 
for(int i = 0; i < 10; i++)
{
  lbls[i] = new Label();
  lbls[i].Text = String.Format("Label {0}", i);
  lbls[i].Top = 100 + i * 24;
}
You can also subscribe an event for all the controls, using the same handler. And you can use the sender parameter in the event handler to know which control raised it.

I hope this helps! Smile | :)

Luis Alonso Ramos
Intelectix
Chihuahua, Mexico

Not much here: My CP Blog!

GeneralRe: Control arrays in C# Pin
OmicronTheta22-Dec-06 0:35
OmicronTheta22-Dec-06 0:35 
GeneralRe: Control arrays in C# Pin
Luis Alonso Ramos22-Dec-06 12:08
Luis Alonso Ramos22-Dec-06 12:08 
AnswerRe: dataset in c# Pin
Mairaaj Khan17-Dec-06 21:10
professionalMairaaj Khan17-Dec-06 21:10 
GeneralRe: datahandler in c# Pin
Fuhrer17-Dec-06 21:19
Fuhrer17-Dec-06 21:19 
Questionpublish problem with C# express 2005 Pin
Argus217-Dec-06 10:29
Argus217-Dec-06 10:29 
AnswerRe: publish problem with C# express 2005 Pin
qingfengliuyue22-Apr-09 21:17
qingfengliuyue22-Apr-09 21:17 
Questionabout arraylist Pin
loscarlitos17-Dec-06 9:33
loscarlitos17-Dec-06 9:33 
AnswerRe: about arraylist Pin
Pradipta Basu17-Dec-06 9:53
Pradipta Basu17-Dec-06 9:53 
GeneralRe: about arraylist Pin
loscarlitos17-Dec-06 10:06
loscarlitos17-Dec-06 10:06 
GeneralRe: about arraylist Pin
Larantz17-Dec-06 10:16
Larantz17-Dec-06 10:16 
AnswerRe: about arraylist Pin
DavidNohejl17-Dec-06 10:40
DavidNohejl17-Dec-06 10:40 
GeneralRe: about arraylist Pin
J4amieC17-Dec-06 22:34
J4amieC17-Dec-06 22:34 
GeneralRe: about arraylist Pin
DavidNohejl18-Dec-06 1:16
DavidNohejl18-Dec-06 1:16 
GeneralRe: about arraylist Pin
J4amieC18-Dec-06 1:18
J4amieC18-Dec-06 1:18 
GeneralRe: about arraylist Pin
DavidNohejl18-Dec-06 1:50
DavidNohejl18-Dec-06 1:50 
QuestionExtracting/Compressing .grf file Pin
AesopTurtle17-Dec-06 8:09
AesopTurtle17-Dec-06 8:09 
QuestionWhen to choose Windows Application or Console Application Pin
ComCoderCsharp17-Dec-06 7:33
ComCoderCsharp17-Dec-06 7:33 

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.