Click here to Skip to main content
15,900,108 members

Comments by Arz Muhammad (Top 1 by date)

Arz Muhammad 31-Jul-15 3:40am View    
private void checkedListBox2_SelectedIndexChanged(object sender, EventArgs e)
{
textBox1.Text = checkedListBox2.SelectedIndex.ToString();

//button2.Text += " " + checkedListBox1.SelectedItems[Convert.ToInt16(textBox1.Text)];
}

private void button3_Click(object sender, EventArgs e)
{
try
{

int im = Convert.ToInt16(textBox1.Text);
if (im == 0)
{
//MessageBox.Show(checkedListBox2.SelectedItems[im].ToString());
this.Text = checkedListBox2.SelectedItems[im].ToString();
}
else
{
im = im - 1;
this.Text = checkedListBox2.SelectedItems[im].ToString();
}
}
catch (Exception ex)
{ MessageBox.Show(ex.ToString()); }
finally { }
}