View Single Post
  #1 (permalink)  
Old April 21st, 2014, 03:11 AM
belitaross belitaross is offline
Registered User
 
Join Date: Apr 2014
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default Not sure if I am in the right place.

I need some help with my code. I need a messagebox to show and I know the code is right, but it only works for VB not for Visual Web Developer(2010). Could someone please look at my code to see if I have done something wrong. I am using Visual Web Developer 2012, Thanks

Code:
             'Calculate and display the total charges.
            decTotal = decSubtotal + decTax     '<---Calculating(adding) the Total Charges
            lblTotal.Text = decTotal.ToString("c")  '<---Displaying decTotal in lblTotal.

            'Change and display the total charges.
            lblTotal.BackColor = Drawing.Color.Blue
            lblTotal.ForeColor = Drawing.Color.White

        Catch ex As Exception
            'Error message
            MessageBox.Show("All input must be vaild numberic values.")
        End Try
Reply With Quote