When I try to use this code on my ListBox, only the select index 0 executes.
#region SelectedIndex0
if (listBox2.SelectedIndex == 0)
{
SelectedIndex0();
}
else { return; }
#endregion
#region SelectedIndex1
if (listBox2.SelectedIndex == 1)
{
SelectedIndex1();
}
else { return; }
#endregion