Dim total as single
If TextBox1.Enabled = True Then total = total + Val(TextBox1.Text)
If TextBox2.Enabled = True Then total = total + Val(TextBox2.Text)
TextBox3.Text = total
__________________
A morning without coffee is like something without something else.
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET. subscribe