title: Visual basic less than 0
body: <p>Im trying to make a program that when i put a value less than 0, in a label something like "
   negative numbers cant be used i have this </p>
  
  <pre><code>Public Class Form1 'Sebastian roman. Perimeter, 10/1/2014
  
  
      Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
  
          Try
              Dim intSide1 As Integer = txtSide1.Text
              Dim intSide2 As Integer = txtSide2.Text
              Dim intSide3 As Integer = txtSide3.Text
              Dim intSide4 As Integer = txtSide4.Text
              Dim intTotal As Integer = intSide1 + intSide2 + intSide3 + intSide4
              lblMessage.Text = intTotal.ToString("#,###.##")
          Catch ex As Exception
              MessageBox.Show("Incorrect Input. Enter a numeric value.")
          End Try
  
      End Sub
  End Class
  </code></pre>
  
  <p>Yes i have to use the try catch method and i need help for this</p>