public Load()
{
InitializeComponent();
cboList.Items.Add(
"First");
cboList.Items.Add(
"Second");
cboList.Items.Add(
"Third");
cboList.Items.Add(
"Fourth");
}
public private void btnLast_Click(object sender, EventArgs e)
{
//first u store current index in another variable
Currnetindex = cboList.SelectedIndex
//then u need to just set start index this show from start to current as well as all
cboList.SelectedIndex = -1;
}
}
private void btnNext_Click(object sender, EventArgs e)
{
//here u set previous current index to next value
cboList.SelectedIndex = Currnetindex ;
}
}
NOte:-
if u wnat to show only one option then u need to set visible false for selected item in a loop