gpt4 book ai didi

c# - 如何计算 textchanged 事件的值?

转载 作者:行者123 更新时间:2023-11-30 15:25:32 26 4
gpt4 key购买 nike

<分区>

我已经尝试过 textchanged 事件

decimal a1 = Convert.ToDecimal(0.00);
decimal b1 = Convert.ToDecimal(0.00);
decimal c1 = Convert.ToDecimal(0.00);
a1 = Convert.ToDecimal(txt_Advance.Text.Trim().ToString());
b1 = Convert.ToDecimal(txtTotal.Text.Trim().ToString());
c1 = b1 - a1;
txt_Net.Text = c1.ToString();

这只在我再次更改值时有效一次。它在 txt_Advance.text 中给出格式不正确的错误

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com