private void ChBCostPerUnit_CheckedChanged(object sender, EventArgs e) { if (NUQuantity.Value > 1) // Needed because used for Cost_Changed event { //TTAltPrice.Show(MultiCost(), this.NUCost); TTAltPrice.SetToolTip(this.NUCost, MultiCost()); } }
private void NUQuantity_ValueChanged(object sender, EventArgs e) { if (NUQuantity.Value > 1) { ChBCostPerUnit.Visible = true; ChBCostPerUnit.Enabled = true; NUQuantity.Size = new Size(40, NUQuantity.Size.Height); TTAltPrice.SetToolTip(this.NUCost, MultiCost()); //TTAltPrice.Show(MultiCost(),this.NUCost); } else { ChBCostPerUnit.Visible = false; ChBCostPerUnit.Enabled = false; NUQuantity.Size = new Size(120, NUQuantity.Size.Height); } }