/// <summary> /// when the weapon choice is changed , updates the current tanks choice of weapon /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void weaponSelect_SelectedIndexChanged(object sender, EventArgs e) { currentTank.SetWeapon(weaponSelect.SelectedIndex); //get rid of focus so keyboard controls dont change the select weapon this.ActiveControl = null; }