hello there
i have just create a software in which 6 textbox is there the textbox 1and 2 is for input and textbox 3 is for output which is the addition of the texbox 1 and 2.
and again textbox 4and 5 is for input and textbox 6 is for output which is addition of textbox 4 and 5.
the problem is that when i use only textbox 1,2and 3 it gives error pls any body help me out how can i ignore the textbox 4,5and 6 .


Anil KumarRank #367 · 6.8K reputationPosted May 30, 2012, 9:04 AM EDT
Please provide more details to resolve your problem.
praveen maurya103 reputationPosted May 30, 2012, 7:10 PM EDT
it is a windows application now i am attaching my whole project in this project i am doing five addition and get and get five output at a click but is i only want to do only 2 addition and the remaining textbox left emty then the programme is showing error THAT """Input string was not in a correct format."""""
please help me to ignore the remaining textbox
Anil KumarRank #367 · 6.8K reputationPosted May 31, 2012, 10:27 PM EDT
Just initialize (default Text value) all your textboxes with 0 or 0.00
So, no matter how many inputs you give, it will not give you error.
Kunal VaishyaRank #990 · 2K reputationPosted Jun 1, 2012, 12:22 AM EDT
TextBox3.Text = (Convert.ToDouble(Convert.ToString(textBox1.Text)) + Convert.ToDouble(Convert.ToString(textBox2.Text))).ToString();
in Text Change Event
it will convert zero if null exist
you can also chaeck by TextBox1.TextLenght = 0 then zero value