private void btnUpdate_Click(object sender, EventArgs e) { selected = lbxScores.SelectedIndex; Form updateScore = new frmUpdateScore(); updateScore.ShowDialog(); bs.ResetBindings(false); }
private void btnUpdate_Click(object sender, EventArgs e) { //update a score from the score list box by selecting the index selected = lbxScores.SelectedIndex; //create update score form Form updateScore = new frmUpdateScore(); //display upadate score form updateScore.ShowDialog(); //false shows that only the value of one or more scores have chenaged. bs.ResetBindings(false); }