更新时间:2023-09-06 12:50:40
你可以打电话你在文本框的ontextchanges事件上的这个函数
you can call this function on you textbox's ontextchanges event
use..SpellNumber.dll在Works中转换金额..
见这里。 。
转换金额使用C#.NET以孟加拉国货币格式使用逗号的单词和单独金额 [ ^ ]
use..SpellNumber.dll to convert amount in Works..
See here..
Convert Amount in Words and Separate Amount with comma in Bangladeshi Currency Format using C#.NET[^]
void txtnumber_TextChanged(object sender, EventArgs e)
{
if(!string.IsNullOrEmpty(txtnumber.Text))
{
string word = ConvertNumbertoWords(Convert.ToInt32(txtnumber.Text));
lblmsg.InnerText = word;
}
}