Uploaded by IMMA SCARED

Codes

advertisement
Public Class Form1
Dim x, y As Double
Private Sub RadioButton4_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
End Sub
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
y = Val(TextBox1.Text)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If RadioButton1.Checked And ComboBox1.SelectedIndex = 0 = True Then
x = y / 2.54
ElseIf RadioButton2.Checked And ComboBox1.SelectedIndex = 0 = True Then
x = y / 30.48
ElseIf RadioButton3.Checked And ComboBox1.SelectedIndex = 0 = True Then
x = y / 91.44
ElseIf RadioButton4.Checked And ComboBox1.SelectedIndex = 0 = True Then
x = y / 160934
ElseIf RadioButton1.Checked And ComboBox1.SelectedIndex = 1 = True Then
x = y / 1
ElseIf RadioButton2.Checked And ComboBox1.SelectedIndex = 1 = True Then
x = y / 12
ElseIf RadioButton3.Checked And ComboBox1.SelectedIndex = 1 = True Then
x = y / 36
ElseIf RadioButton4.Checked And ComboBox1.SelectedIndex = 1 = True Then
x = y / 63360
End If
Label2.Text = x
End Sub
Private Sub RadioButton3_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton3.CheckedChanged
End Sub
Private Sub Label2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label2.Click
End Sub
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
End Sub
Private Sub RadioButton2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton2.CheckedChanged
End Sub
Private Sub Label2_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label2.Click
End Sub
End Class
Download