private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
item = comboBox1.SelectedIndex.ToString();
}
When doing SelectedIndex so in this case item = "0" Then i'm doing:
CreateMainDirectory(int.Parse(item));
So in CreateMaindirectory the number is 0. But the first index/item in the comboBox is:
"Reduced by: 10"
So i want to parse the number 10. So in CreateMainDirectory should be the number 10.
And if i'm doing:
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
item = comboBox1.SelectedItem.ToString();
}
Then item is: "Reduced by: 10"
How can i parse the number 10 if i'm using SelectedIndex and/or SelectedItem ?