VERSION 5.00 Begin VB.Form Form1 Caption = "Car status words/Hex converter" ClientHeight = 3195 ClientLeft = 165 ClientTop = 735 ClientWidth = 4680 LinkTopic = "Form1" ScaleHeight = 3195 ScaleWidth = 4680 StartUpPosition = 3 'Windows Default Begin VB.TextBox Text13 BorderStyle = 0 'None Height = 285 Left = 1920 TabIndex = 12 Top = 1440 Width = 400 End Begin VB.TextBox Text12 BorderStyle = 0 'None Height = 285 Left = 1320 TabIndex = 11 Top = 1440 Width = 400 End Begin VB.TextBox Text11 BorderStyle = 0 'None Height = 285 Left = 720 TabIndex = 10 Top = 1440 Width = 400 End Begin VB.TextBox Text10 BorderStyle = 0 'None Height = 285 Left = 120 TabIndex = 9 Top = 1440 Width = 400 End Begin VB.TextBox Text9 Height = 285 Left = 1920 TabIndex = 8 Top = 840 Width = 495 End Begin VB.TextBox Text8 Height = 285 Left = 1320 TabIndex = 7 Top = 840 Width = 495 End Begin VB.TextBox Text7 Height = 285 Left = 720 TabIndex = 6 Top = 840 Width = 495 End Begin VB.TextBox Text6 Height = 285 Left = 120 TabIndex = 5 Top = 840 Width = 495 End Begin VB.TextBox Text5 Height = 285 Left = 1560 TabIndex = 4 Text = "H" Top = 240 Width = 285 End Begin VB.TextBox Text4 Height = 285 Left = 1200 MaxLength = 1 TabIndex = 3 Top = 240 Width = 285 End Begin VB.TextBox Text3 Height = 285 Left = 840 MaxLength = 1 TabIndex = 2 Top = 240 Width = 285 End Begin VB.TextBox Text2 Height = 285 Left = 480 MaxLength = 1 TabIndex = 1 Top = 240 Width = 285 End Begin VB.TextBox Text1 Height = 285 Left = 120 MaxLength = 1 TabIndex = 0 Top = 240 Width = 285 End Begin VB.Menu mnuFile Caption = "&File" Begin VB.Menu mnuExit Caption = "E&xit" End End End Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub mnuExit_Click() Unload Form1 End End Sub Private Sub Text1_Change() Select Case Text1.Text Case Is = "": Text6.Text = "": Exit Sub Case Is = "0": Text6.Text = "0000" Text13.Text = "0000" Case Is = "1": Text6.Text = "0001" Text13.Text = "1000" Case Is = "2": Text6.Text = "0010" Text13.Text = "0100" Case Is = "3": Text6.Text = "0011" Text13.Text = "1100" Case Is = "4": Text6.Text = "0100" Text13.Text = "0010" Case Is = "5": Text6.Text = "0101" Text13.Text = "1010" Case Is = "6": Text6.Text = "0110" Text13.Text = "0110" Case Is = "7": Text6.Text = "0111" Text13.Text = "1110" Case Is = "8": Text6.Text = "1000" Text13.Text = "0001" Case Is = "9": Text6.Text = "1001" Text13.Text = "1001" Case Is = "A": Text6.Text = "1010" Text13.Text = "0101" Case Is = "a": Text6.Text = "1010" Text13.Text = "0101" Case Is = "b": Text6.Text = "1011" Text13.Text = "1101" Case Is = "B": Text6.Text = "1011" Text13.Text = "1101" Case Is = "c": Text6.Text = "1100" Text13.Text = "0011" Case Is = "C": Text6.Text = "1100" Text13.Text = "0011" Case Is = "d": Text6.Text = "1101" Text13.Text = "1011" Case Is = "D": Text6.Text = "1101" Text13.Text = "1011" Case Is = "e": Text6.Text = "1110" Text13.Text = "0111" Case Is = "E": Text6.Text = "1110" Text13.Text = "0111" Case Is = "f": Text6.Text = "1111" Text13.Text = "1111" Case Is = "F": Text6.Text = "1111" Text13.Text = "1111" End Select Text2.Text = "" Text2.SetFocus End Sub Private Sub Text2_Change() Select Case Text2.Text Case Is = "": Exit Sub Case Is = "0": Text7.Text = "0000" Text12.Text = "0000" Case Is = "1": Text7.Text = "0001" Text12.Text = "1000" Case Is = "2": Text7.Text = "0010" Text12.Text = "0100" Case Is = "3": Text7.Text = "0011" Text12.Text = "1100" Case Is = "4": Text7.Text = "0100" Text12.Text = "0010" Case Is = "5": Text7.Text = "0101" Text12.Text = "1010" Case Is = "6": Text7.Text = "0110" Text12.Text = "0110" Case Is = "7": Text7.Text = "0111" Text12.Text = "1110" Case Is = "8": Text7.Text = "1000" Text12.Text = "0001" Case Is = "9": Text7.Text = "1001" Text12.Text = "1001" Case Is = "A": Text7.Text = "1010" Text12.Text = "0101" Case Is = "a": Text7.Text = "1010" Text12.Text = "0101" Case Is = "b": Text7.Text = "1011" Text12.Text = "1101" Case Is = "B": Text7.Text = "1011" Text12.Text = "1101" Case Is = "c": Text7.Text = "1100" Text12.Text = "0011" Case Is = "C": Text7.Text = "1100" Text12.Text = "0011" Case Is = "d": Text7.Text = "1101" Text12.Text = "1011" Case Is = "D": Text7.Text = "1101" Text12.Text = "1011" Case Is = "e": Text7.Text = "1110" Text12.Text = "0111" Case Is = "E": Text7.Text = "1110" Text12.Text = "0111" Case Is = "f": Text7.Text = "1111" Text12.Text = "1111" Case Is = "F": Text7.Text = "1111" Text12.Text = "1111" End Select Text3.Text = "" Text3.SetFocus End Sub Private Sub Text3_Change() Select Case Text3.Text Case Is = "": Exit Sub Case Is = "0": Text8.Text = "0000" Text11.Text = "0000" Case Is = "1": Text8.Text = "0001" Text11.Text = "1000" Case Is = "2": Text8.Text = "0010" Text11.Text = "0100" Case Is = "3": Text8.Text = "0011" Text11.Text = "1100" Case Is = "4": Text8.Text = "0100" Text11.Text = "0010" Case Is = "5": Text8.Text = "0101" Text11.Text = "1010" Case Is = "6": Text8.Text = "0110" Text11.Text = "0110" Case Is = "7": Text8.Text = "0111" Text11.Text = "1110" Case Is = "8": Text8.Text = "1000" Text11.Text = "0001" Case Is = "9": Text8.Text = "1001" Text11.Text = "1001" Case Is = "A": Text8.Text = "1010" Text11.Text = "0101" Case Is = "a": Text8.Text = "1010" Text11.Text = "0101" Case Is = "b": Text8.Text = "1011" Text11.Text = "1101" Case Is = "B": Text8.Text = "1011" Text11.Text = "1101" Case Is = "c": Text8.Text = "1100" Text11.Text = "0011" Case Is = "C": Text8.Text = "1100" Text11.Text = "0011" Case Is = "d": Text8.Text = "1101" Text11.Text = "1011" Case Is = "D": Text8.Text = "1101" Text11.Text = "1011" Case Is = "e": Text8.Text = "1110" Text11.Text = "0111" Case Is = "E": Text8.Text = "1110" Text11.Text = "0111" Case Is = "f": Text8.Text = "1111" Text11.Text = "1111" Case Is = "F": Text8.Text = "1111" Text11.Text = "1111" End Select Text4.Text = "" Text4.SetFocus End Sub Private Sub Text4_Change() Select Case Text4.Text Case Is = "": Exit Sub Case Is = "0": Text9.Text = "0000" Text10.Text = "0000" Case Is = "1": Text9.Text = "0001" Text10.Text = "1000" Case Is = "2": Text9.Text = "0010" Text10.Text = "0100" Case Is = "3": Text9.Text = "0011" Text10.Text = "1100" Case Is = "4": Text9.Text = "0100" Text10.Text = "00010" Case Is = "5": Text9.Text = "0101" Text10.Text = "1010" Case Is = "6": Text9.Text = "0110" Text10.Text = "0110" Case Is = "7": Text9.Text = "0111" Text10.Text = "1110" Case Is = "8": Text9.Text = "1000" Text10.Text = "0001" Case Is = "9": Text9.Text = "1001" Text10.Text = "1001" Case Is = "A": Text9.Text = "1010" Text10.Text = "0101" Case Is = "a": Text9.Text = "1010" Text10.Text = "0101" Case Is = "b": Text9.Text = "1011" Text10.Text = "1101" Case Is = "B": Text9.Text = "1011" Text10.Text = "01101" Case Is = "c": Text9.Text = "1100" Text10.Text = "0011" Case Is = "C": Text9.Text = "1100" Text10.Text = "0011" Case Is = "d": Text9.Text = "1101" Text10.Text = "1011" Case Is = "D": Text9.Text = "1101" Text10.Text = "1011" Case Is = "e": Text9.Text = "1110" Text10.Text = "0111" Case Is = "E": Text9.Text = "1110" Text10.Text = "0111" Case Is = "f": Text9.Text = "1111" Text10.Text = "1111" Case Is = "F": Text9.Text = "1111" Text10.Text = "1111" End Select End Sub