Click here to Skip to main content
16,007,932 members
Home / Discussions / C#
   

C#

 
GeneralRe: How change dateTime format!! Pin
joon vh.19-Mar-07 2:32
joon vh.19-Mar-07 2:32 
QuestionHow can I build a ListBox array? Pin
memix19-Mar-07 0:31
memix19-Mar-07 0:31 
AnswerRe: How can I build a ListBox array? Pin
Andrei Ungureanu19-Mar-07 0:42
Andrei Ungureanu19-Mar-07 0:42 
AnswerRe: How can I build a ListBox array? Pin
Russell Jones19-Mar-07 0:56
Russell Jones19-Mar-07 0:56 
AnswerRe: How can I build a ListBox array? Pin
Pete O'Hanlon19-Mar-07 1:01
mvePete O'Hanlon19-Mar-07 1:01 
GeneralRe: How can I build a ListBox array? Pin
sujithkumarsl19-Mar-07 1:39
sujithkumarsl19-Mar-07 1:39 
GeneralRe: How can I build a ListBox array? Pin
Pete O'Hanlon19-Mar-07 2:18
mvePete O'Hanlon19-Mar-07 2:18 
AnswerRe: How can I build a ListBox array? Pin
memix19-Mar-07 2:09
memix19-Mar-07 2:09 
Dear friends,

Thanks for all of you, I succeed it, it works what I want,
at the end my solution is here:


public int numberOfListBoxes =0;
ListBox[] lbArray;
private void button1_Click(object sender, EventArgs e)
{
numberOfListBoxes = Convert.ToInt32(textBox1.Text);
lbArray = new ListBox[numberOfListBoxes];

int i;
int listBoxDistances=100;

for (i = 0; i < numberOfListBoxes; i++)
{
lbArray[i] = new ListBox();
this.lbArray[i].Location = new System.Drawing.Point(100+(i*listBoxDistances), 200);
this.lbArray[i].Name = "lbArray"+"["+i+"]";
this.lbArray[i].Size = new System.Drawing.Size(57, 100);
this.lbArray[i].TabIndex = 2;
this.lbArray[i].Text = "lb";
this.Controls.Add( lbArray[i]);
}

memix

GeneralRe: How can I build a ListBox array? Pin
Pete O'Hanlon19-Mar-07 2:20
mvePete O'Hanlon19-Mar-07 2:20 
QuestionTreeView Pin
sinosoidal19-Mar-07 0:21
sinosoidal19-Mar-07 0:21 
AnswerRe: TreeView Pin
JoeSharp19-Mar-07 0:32
JoeSharp19-Mar-07 0:32 
GeneralRe: TreeView Pin
sinosoidal19-Mar-07 0:37
sinosoidal19-Mar-07 0:37 
AnswerRe: TreeView Pin
sinosoidal19-Mar-07 0:49
sinosoidal19-Mar-07 0:49 
GeneralRe: TreeView Pin
joon vh.19-Mar-07 1:15
joon vh.19-Mar-07 1:15 
GeneralRe: TreeView Pin
sinosoidal19-Mar-07 5:12
sinosoidal19-Mar-07 5:12 
GeneralRe: TreeView Pin
joon vh.19-Mar-07 5:31
joon vh.19-Mar-07 5:31 
QuestionHow to store sensitive data? Pin
Akiratf19-Mar-07 0:20
Akiratf19-Mar-07 0:20 
AnswerRe: How to store sensitive data? Pin
joon vh.19-Mar-07 1:06
joon vh.19-Mar-07 1:06 
AnswerRe: How to store sensitive data? Pin
m@u19-Mar-07 4:21
m@u19-Mar-07 4:21 
AnswerRe: How to store sensitive data? Pin
Vasudevan Deepak Kumar19-Mar-07 6:32
Vasudevan Deepak Kumar19-Mar-07 6:32 
AnswerRe: How to store sensitive data? Pin
Akiratf19-Mar-07 22:04
Akiratf19-Mar-07 22:04 
QuestionReading value from a variabile Pin
Andrei Ungureanu19-Mar-07 0:13
Andrei Ungureanu19-Mar-07 0:13 
AnswerRe: Reading value from a variabile Pin
Pete O'Hanlon19-Mar-07 0:17
mvePete O'Hanlon19-Mar-07 0:17 
GeneralRe: Reading value from a variabile Pin
Andrei Ungureanu19-Mar-07 0:30
Andrei Ungureanu19-Mar-07 0:30 
GeneralRe: Reading value from a variabile Pin
Colin Angus Mackay19-Mar-07 0:39
Colin Angus Mackay19-Mar-07 0:39 

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.