private void BtnMoveNext_Click(object sender, EventArgs e) { if (LstItems.SelectedItems.Count > 0) { var index = LstItems.SelectedItems[0].Index + 1; if (index == LstItems.Items.Count) { index = 0; } LstItems.Items[index].Selected = true; } else { LstItems.Items[0].Selected = true; } TxtBuyerNum.Focus(); }
private void TxtFinalBid_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == 13) { if (LstItems.SelectedItems.Count > 0) { var index = LstItems.SelectedItems[0].Index + 1; if (index == LstItems.Items.Count) { index = 0; } LstItems.Items[index].Selected = true; } else { LstItems.Items[0].Selected = true; } e.Handled = true; TxtBuyerNum.Focus(); } }
private void FrmShowBidEntry_Load(object sender, EventArgs e) { TxtBuyerNum.Focus(); }