如何在按钮单击时调用文本框的离开动作 [英] how to call a leave action of textbox on button click
本文介绍了如何在按钮单击时调用文本框的离开动作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好朋友,我想在按钮单击时调用文本框的离开操作.我所做的就是这样...
hello frens, i want to call the leave action of textbox on button click. what i have done is like this...
private void txtnowpaying_getpaymentform_Leave(object sender, EventArgs e)
{
decimal nowpayingamount = Convert.ToDecimal(txtnowpaying_getpaymentform.Text);
decimal remainingdue = Convert.ToDecimal(txttotalbillamount_getpaymentform.Text) - nowpayingamount;
txtcurrentdue_getpaymentform.Text = remainingdue.ToString();
}
现在,我想在按钮上单击此退出操作,单击该怎么做,请帮助
关于bishnu
now i want to call this leave action on button click how can i do this please help
with regards bishnu
推荐答案
试试这个,
Hi,
try this,
Protected void Button_Click(object sender, EventArgs e)
{
txtnowpaying_getpaymentform_Leave(txtnowpaying_getpaymentform, new EventArgs());
}
希望对您有所帮助.
hope it helps.
这篇关于如何在按钮单击时调用文本框的离开动作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文