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?
|
Newbie Member
|
|
| 8Sep2010,12:49 | #1 |
|
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 |
|
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 |
|
first gotta read welcome to c# then start workin
|