Option ExplicitDim value As LongPrivate Sub Combo1_Click() Label1.Caption = Combo1.ListIndexEnd SubPrivate Sub Combo2_Click() Label3.Caption = Combo2.ListIndexEnd SubPrivate Sub Command_Click() Form2.ShowEnd SubPrivate Sub Command1_Click() Label1.Caption = 0End SubPrivate Sub Command2_Click() Label1.Caption = 1End SubPrivate Sub Command3_Click() Label1.Caption = 2End SubPrivate Sub Command4_Click() Label1.Caption = 3End SubPrivate Sub Command5_Click() Label1.Caption = 4End SubPrivate Sub Command6_Click() EndEnd SubPrivate Sub HS1_Change() LED1.Number = HS1.value If HS1.value < 1000 Then FLED1.LEDstate = 1 FLED2.LEDstate = 0 ElseIf HS1.value >= 1000 Then FLED1.LEDstate = 0 FLED2.LEDstate = 1 End IfEnd SubPrivate Sub Label1_Change() value = (Label1.Caption * 10 + Label2.Caption) * 10 ^ Label3.Caption Label4.Caption = valueEnd SubPrivate Sub Label2_Change() value = (Label1.Caption * 10 + Label2.Caption) * 10 ^ Label3.Caption Label4.Caption = valueEnd SubPrivate Sub Label3_Change() value = (Label1.Caption * 10 + Label2.Caption) * 10 ^ Label3.CaptionLabel4.Caption = valueEnd SubPrivate Sub Label4_Change() If value > 1000000 Then Label4.Caption = Str(value / 1000000) + "Mega-Ohm" ElseIf value > 1000 Then Label4.Caption = Str(value / 1000) + "Kilo-Ohm" End IfEnd SubPrivate Sub List1_Click() Label2.Caption = List1.ListIndexEnd SubPrivate Sub Picture1_Click() Label1.Caption = 0End SubPrivate Sub Picture2_Click() Label1.Caption = 1End SubPrivate Sub Picture3_Click() Label1.Caption = 2End SubPrivate Sub Picture4_Click() Label1.Caption = 3End SubPrivate Sub Picture5_Click() Label1.Caption = 4End Sub
Option ExplicitDim value As LongPrivate Sub Combo1_Click() Label2.Caption = Combo1.ListIndexEnd SubPrivate Sub Command1_Click() Label1.Caption = 0 Shape3.BackColor = Command1.BackColorEnd SubPrivate Sub Command2_Click() Label1.Caption = 1 Shape3.BackColor = Command2.BackColorEnd SubPrivate Sub Command3_Click() Label1.Caption = 2 Shape3.BackColor = Command3.BackColorEnd SubPrivate Sub Command4_Click() Label1.Caption = 3 Shape3.BackColor = Command4.BackColorEnd SubPrivate Sub Command5_Click() Label1.Caption = 4 Shape3.BackColor = Command5.BackColorEnd SubPrivate Sub Command6_Click() EndEnd SubPrivate Sub Command7_Click() Form2.ShowEnd SubPrivate Sub Label1_Change() value = (Label1.Caption * 10 + Label2.Caption) * 10 ^ Label3.Caption If value > 1000000 Then value = value / 1000000 Label4.Caption = Str(value) + " M-Ohm" ElseIf value > 1000 Then value = value / 1000 Label4.Caption = Str(value) + " K-Ohm" Else Label4.Caption = Str(value) + " Ohm" End IfEnd SubPrivate Sub Label2_Change() value = (Label1.Caption * 10 + Label2.Caption) * 10 ^ Label3.Caption If value > 1000000 Then value = value / 1000000 Label4.Caption = Str(value) + " M-Ohm" ElseIf value > 1000 Then value = value / 1000 Label4.Caption = Str(value) + " K-Ohm" Else Label4.Caption = Str(value) + " Ohm" End IfEnd SubPrivate Sub Label3_Change() value = (Label1.Caption * 10 + Label2.Caption) * 10 ^ Label3.Caption If value > 1000000 Then value = value / 1000000 Label4.Caption = Str(value) + " M-Ohm" ElseIf value > 1000 Then value = value / 1000 Label4.Caption = Str(value) + " K-Ohm" Else Label4.Caption = Str(value) + " Ohm" End If End SubPrivate Sub List1_Click() Label3.Caption = List1.ListIndex If List1.ListIndex = 0 Then Shape5.BackColor = RGB(0, 0, 0) ElseIf List1.ListIndex = 1 Then Shape5.BackColor = RGB(200, 155, 40) ElseIf List1.ListIndex = 2 Then Shape5.BackColor = vbRed ElseIf List1.ListIndex = 3 Then Shape5.BackColor = RGB(255, 200, 45) ElseIf List1.ListIndex = 4 Then Shape5.BackColor = QBColor(14) ElseIf List1.ListIndex = 5 Then Shape5.BackColor = vbGreen End IfEnd SubPrivate Sub P1_Click() Label2.Caption = 0End SubPrivate Sub P2_Click() Label2.Caption = 1End SubPrivate Sub P3_Click() Label2.Caption = 2End SubPrivate Sub P4_Click() Label2.Caption = 3End SubPrivate Sub P5_Click() Label2.Caption = 4End Sub