Sum of form entries

Newbie Member
8Sep2010,12:49   #1
flxbbs's Avatar
Hello!
I'm a beginner C# programmer, I just want to know how would I go around writing a script that adds digit entered in a form?
Go4Expert Member
14Sep2010,08:21   #2
dotNet Zombie's Avatar
something like this

Code:
int x = 0;
foreach (char c in textBox1.Text)
{
      x += Convert.ToInt32(c.ToString());
}
 MessageBox.Show(x.ToString());
shabbir like this
Newbie Member
16Sep2010,23:24   #3
chwax's Avatar
first gotta read welcome to c# then start workin