I am using the textBox_Changed
event and when I type a value in the field, another textBox
should receive this value, but this other textBox
called ValorTotalVenda
is accumulating this value.
private void textBox4_TextChanged(object sender, EventArgs e)
{
if (textBox4.Text != "")
{
venda.ValorAcrescimo = Convert.ToDecimal(textBox4.Text);
venda.ValorTotalVenda += venda.ValorAcrescimo;
textBox6.Text = Convert.ToString(venda.ValorTotalVenda);
}
}