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 .

Kunal VaishyaPosted Jun 1, 2012, 4:22 AM
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
Anil KumarPosted Jun 1, 2012, 2:27 AM
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.
praveen mauryaPosted May 30, 2012, 11:10 PM
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 KumarPosted May 30, 2012, 1:04 PM
Please provide more details to resolve your problem.