Advertisement
Drifting

Untitled

Nov 3rd, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.80 KB | None | 0 0
  1. Public Class Form1
  2.  
  3.     Private Sub btnconvert_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnconvert.Click
  4.  
  5.  
  6.     End Sub
  7.  
  8.     Private Sub txtinputinch_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtinputinch.TextChanged
  9.         If txtinputinch = 1 Then
  10.             lbloutputmm.Text = 25.4 * 1
  11.             ElseIf txtinputinch.Text = 4 Then
  12.         lbloutputmm.Text = 25.4 * 2
  13.         If txtinputinch.Text = 5 Then
  14.             lbloutputmm.Text = 25.4 * 3
  15.         ElseIf txtinputinch.Text = 6 Then
  16.             lbloutputmm.Text = 25.4 * 5
  17.         ElseIf txtinputinch.Text = 7 Then
  18.             lbloutputmm.Text = 25.4 * 6
  19.         ElseIf txtinputinch.Text = 8 Then
  20.             lbloutputmm.Text = 25.4 * 7
  21.         ElseIf txtinputinch.Text = 9 Then
  22.             lbloutputmm.Text = 25.4 * 8
  23.             txtinputinch.Text = 10
  24.             lbloutputmm.Text = 25.4 * 9
  25.         ElseIf txtinputinch.Text = 11 Then
  26.             lbloutputmm.Text = 25.4 * 10
  27.             txtinputinch.Text = 12
  28.             lbloutputmm.Text = 25.4 * 11
  29.         ElseIf txtinputinch.Text = 13 Then
  30.             lbloutputmm.Text = 25.4 * 12
  31.             txtinputinch.Text = 14
  32.             lbloutputmm.Text = 25.4 * 13
  33.         ElseIf txtinputinch.Text = 15 Then
  34.             lbloutputmm.Text = 25.4 * 14
  35.             txtinputinch.Text = 16
  36.             lbloutputmm.Text = 25.4 * 15
  37.         ElseIf txtinputinch.Text = 2 Then
  38.             lbloutputmm.Text = 25.4 * 16
  39.             txtinputinch.Text = 17
  40.             lbloutputmm.Text = 25.4 * 17
  41.         ElseIf txtinputinch.Text = 18 Then
  42.             lbloutputmm.Text = 25.4 * 18
  43.         End If
  44.  
  45.  
  46.  
  47.     End Sub
  48.  
  49.     Private Sub lblmm_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
  50.  
  51.        
  52.     End Sub
  53. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement