First of all, hello all^^. actually don't know whether this is a suitable place or not to post this problem.
anyway let straight to the point., actually i have a problem with this coding for my school project.
theres no error too fix but i can't get the calculation and if statement in the right thing . don't know whether the phrase or something .
a newbie like me, already think of it.. the problem hundreds of time..
try to fix it. but still the same thing happen.


BMI Code:
  1. Public Class Form1
  2.  
  3.     Private Sub BtnResult_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnResult.Click
  4.  
  5.  
  6.         Dim Weight, Height As Integer
  7.         Dim BMI As Integer
  8.  
  9.  
  10.  
  11.         Weight = Val(TxtWeight.Text)
  12.         Height = Val(TxtHeight.Text)
  13.  
  14.         BMI = (Weight \ Height)
  15.  
  16.         If BMI < 50 Then
  17.             LblShow.Text = ("Under Weight for Your Height")
  18.         Else
  19.             LblShow.Text = ("Over Weight For You Height")
  20.  
  21.         End If
  22.  
  23.  
  24.  
  25.     End Sub
  26.  
  27.     Private Sub BtnClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnClear.Click
  28.         TxtHeight.Clear()
  29.         TxtWeight.Clear()
  30.         LblShow.Text = " "
  31.  
  32.     End Sub
  33.     Private Sub BtnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnExit.Click
  34.  
  35.         MessageBox.Show("Bye!!")
  36.  
  37.         Me.Close()
  38.  
  39.     End Sub
  40.  
  41.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  42.  
  43.     End Sub
  44. End Class