Thanku in advance...
When i Click the 'submit' button the listbox is empty.. no values are showing.. can u help what is the problem behind this.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
JohnRank #2,322 · 608 reputationPosted Jan 18, 2017, 9:36 PM EST
JohnRank #2,322 · 608 reputationPosted Jan 18, 2017, 9:28 PM EST
Dayana Oby7 reputationPosted Jan 18, 2017, 9:34 PM EST
Dayana Oby7 reputationPosted Jan 18, 2017, 9:44 PM EST
Mangesh GRank #294 · 8.6K reputationPosted Jan 18, 2017, 11:40 PM EST
Mangesh GRank #294 · 8.6K reputationPosted Jan 19, 2017, 12:03 AM EST
{
listBox1.Items.Clear();
int n;
n = Convert.ToInt32(txtName.Text);
for (int i = 0; i <= n; i++)
{
if (i % 2 == 0)
{
comboBox1.Items.Add(i);
listBox1.Items.Add(i);
}
else
{
listBox2.Items.Add(i);
}
}