Ok, firstly, don't use Text boxes. Why? Because whatever is entered into a textbox is treated as a string. Vbscript is a bit more forgiving about data types but VB.NET (quite rightly) gets all pissy when you try and add two numbers together that are, in fact, strings.
Instead, use the NumericUpDown control
So let's assume you now have 5 NumericUpDown controls on your form. To get the total of those you just add them all up as an integer
Dim MyTotal as Integer = Me.NumericUpDown1.Value _
+ Me.NumericUpDown2.Value _
+ Me.NumericUpDown3.Value _
+ Me.NumericUpDown4.Value _
+ Me.NumericUpDown5.Value
You could, of course, be even cleverer about it and loop through all the controls in the form, check if they are NumericUpDown controls and then total the values
dim i as integer
For Each c as Control in me.Controls
If TypeOf C Is NumericUpDown Then
Dim nud As NumericUpDown = DirectCast(C, NumericUpDown )
i += nud.value
End If
Next
Msgbox i
Now then, to uploada file to a webpage you are going to need to use the WebClient control. The syntax is pretty easy so I'll just you an example
Dim wc as System.Net.WebClient
wc.UploadFile ("http:\\www.mywebsite.com","c:\temp\test.txt")
<message edited by ginolard on Monday, December 01, 2008 8:40 PM>