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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
JohnPosted Jan 19, 2017, 2:36 AM
Mangesh GPosted Jan 19, 2017, 5:03 AM
{
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);
}
}
Mangesh GPosted Jan 19, 2017, 4:40 AM
Dayana ObyPosted Jan 19, 2017, 2:44 AM
Dayana ObyPosted Jan 19, 2017, 2:34 AM
JohnPosted Jan 19, 2017, 2:28 AM