Click here to Skip to main content
15,903,817 members
Please Sign up or sign in to vote.
3.00/5 (4 votes)
See more:
Hi dears.

I have two maskedtextbox box in form1 and i want to get number of maskedtextbox1 and plus it and show in masktexbox2.

please help me.
Posted

hi
try this one
C#
txtboxAns.Text =" "+(Convert.ToInt32(txtbox1.Text.Trim()) + Convert.ToInt32(txtbox2.Text.Trim()));
 
Share this answer
 
v2
Comments
siasalar 6-Aug-12 7:15am    
Thanks alot dude.
nikheelpatil 6-Aug-12 9:48am    
thanks
let us consider
textbox1.text="somedata";
button click event()
{
textbox2.text=textbox1.text.ToString();
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900