VERSION 5.00
Begin VB.Form AC 
   BackColor       =   &H00FF0000&
   Caption         =   "AC"
   ClientHeight    =   9750
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   14010
   LinkTopic       =   "Form3"
   ScaleHeight     =   11115
   ScaleWidth      =   15240
   StartUpPosition =   3  'Windows Default
   Begin VB.Timer Timer1 
      Interval        =   1000
      Left            =   2640
      Top             =   480
   End
   Begin VB.CommandButton Command2 
      Caption         =   "DC"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   18
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   240
      TabIndex        =   17
      Top             =   1440
      Width           =   1815
   End
   Begin VB.TextBox TextV1 
      Height          =   615
      Left            =   4440
      TabIndex        =   15
      Top             =   4560
      Width           =   2295
   End
   Begin VB.CommandButton cmdcalculate 
      Caption         =   "Calculate"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   13.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   9360
      TabIndex        =   14
      Top             =   2280
      Width           =   2055
   End
   Begin VB.TextBox TextJ3 
      Height          =   495
      Left            =   6120
      TabIndex        =   7
      Top             =   3840
      Width           =   1455
   End
   Begin VB.TextBox TextZ3 
      Height          =   495
      Left            =   3240
      TabIndex        =   6
      Top             =   3840
      Width           =   1455
   End
   Begin VB.TextBox TextJ2 
      Height          =   495
      Left            =   6120
      TabIndex        =   5
      Top             =   3120
      Width           =   1455
   End
   Begin VB.TextBox TextZ2 
      Height          =   495
      Left            =   3240
      TabIndex        =   4
      Top             =   3120
      Width           =   1455
   End
   Begin VB.TextBox TextJ1 
      Height          =   495
      Left            =   6120
      TabIndex        =   3
      Top             =   2280
      Width           =   1455
   End
   Begin VB.TextBox Textz1 
      Height          =   495
      Left            =   3240
      TabIndex        =   2
      Top             =   2280
      Width           =   1455
   End
   Begin VB.CommandButton exit 
      BackColor       =   &H000000FF&
      Caption         =   "Exit"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   13.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   9360
      TabIndex        =   1
      Top             =   3720
      Width           =   2175
   End
   Begin VB.CommandButton cmdclear 
      Caption         =   "Clear"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   13.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   9360
      TabIndex        =   0
      Top             =   3000
      Width           =   2055
   End
   Begin VB.Label lblj2 
      BackColor       =   &H00FF0000&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   13.5
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   855
      Left            =   6360
      TabIndex        =   33
      Top             =   8520
      Width           =   3495
   End
   Begin VB.Label Label16 
      BackColor       =   &H00FF0000&
      Caption         =   "Zth = "
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   13.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   495
      Left            =   960
      TabIndex        =   32
      Top             =   9840
      Width           =   975
   End
   Begin VB.Label Label14 
      BackColor       =   &H00FF0000&
      Caption         =   "Zth = "
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   13.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   495
      Left            =   1080
      TabIndex        =   31
      Top             =   8640
      Width           =   735
   End
   Begin VB.Label Label13 
      BackColor       =   &H00FF0000&
      Caption         =   "Vth ="
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   13.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   495
      Left            =   1080
      TabIndex        =   30
      Top             =   7320
      Width           =   975
   End
   Begin VB.Label Label11 
      BackColor       =   &H00FF0000&
      Caption         =   "Vth ="
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   13.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   495
      Left            =   1080
      TabIndex        =   29
      Top             =   6360
      Width           =   855
   End
   Begin VB.Label lblres 
      BackColor       =   &H00FF0000&
      Caption         =   " "
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   13.5
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   855
      Left            =   2160
      TabIndex        =   28
      Top             =   9600
      Width           =   3495
   End
   Begin VB.Label lbldeg2 
      BackColor       =   &H00FF0000&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   13.5
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   855
      Left            =   6360
      TabIndex        =   27
      Top             =   9600
      Width           =   3495
   End
   Begin VB.Label lblzth 
      BackColor       =   &H00FF0000&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   13.5
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   855
      Left            =   2160
      TabIndex        =   26
      Top             =   8520
      Width           =   3495
   End
   Begin VB.Label lbldeg 
      BackColor       =   &H00FF0000&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   13.5
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   855
      Left            =   6360
      TabIndex        =   25
      Top             =   7320
      Width           =   3495
   End
   Begin VB.Label Label15 
      BackColor       =   &H00FF0000&
      ForeColor       =   &H8000000E&
      Height          =   855
      Left            =   3600
      TabIndex        =   24
      Top             =   12120
      Width           =   3495
   End
   Begin VB.Label lble2 
      BackColor       =   &H00FF0000&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   13.5
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   855
      Left            =   2160
      TabIndex        =   23
      Top             =   7320
      Width           =   3495
   End
   Begin VB.Label lblj1 
      BackColor       =   &H00FF0000&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   13.5
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   855
      Left            =   6360
      TabIndex        =   22
      Top             =   6240
      Width           =   3495
   End
   Begin VB.Label lble 
      BackColor       =   &H00FF0000&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   13.5
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   855
      Left            =   2160
      TabIndex        =   21
      Top             =   6240
      Width           =   3495
   End
   Begin VB.Label Label10 
      BackColor       =   &H00FF0000&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   13.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   375
      Left            =   5160
      TabIndex        =   20
      Top             =   960
      Width           =   1095
   End
   Begin VB.Label Label9 
      BackColor       =   &H00FF0000&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   13.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   375
      Left            =   4680
      TabIndex        =   19
      Top             =   960
      Width           =   1215
   End
   Begin VB.Label Label8 
      BackColor       =   &H00FF0000&
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   13.5
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   375
      Left            =   4320
      TabIndex        =   18
      Top             =   960
      Width           =   1095
   End
   Begin VB.Label Label7 
      BackColor       =   &H00FF0000&
      Caption         =   "V1"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   375
      Left            =   3720
      TabIndex        =   16
      Top             =   4680
      Width           =   495
   End
   Begin VB.Label Label6 
      BackColor       =   &H00FF0000&
      Caption         =   "+  J"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   375
      Left            =   5520
      TabIndex        =   13
      Top             =   3840
      Width           =   495
   End
   Begin VB.Label Label5 
      BackColor       =   &H00FF0000&
      Caption         =   "+  J"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   375
      Left            =   5520
      TabIndex        =   12
      Top             =   3240
      Width           =   495
   End
   Begin VB.Label Label4 
      BackColor       =   &H00FF0000&
      Caption         =   "+  J"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   375
      Left            =   5520
      TabIndex        =   11
      Top             =   2400
      Width           =   495
   End
   Begin VB.Label Label3 
      BackColor       =   &H00FF0000&
      Caption         =   "Z3"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   375
      Left            =   2640
      TabIndex        =   10
      Top             =   3840
      Width           =   495
   End
   Begin VB.Label Label2 
      BackColor       =   &H00FF0000&
      Caption         =   "Z2"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   375
      Left            =   2640
      TabIndex        =   9
      Top             =   3240
      Width           =   375
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FF0000&
      Caption         =   "Z1"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   255
      Left            =   2640
      TabIndex        =   8
      Top             =   2400
      Width           =   495
   End
End
Attribute VB_Name = "AC"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
acform.Hide
rescalculator.Show
End Sub

'Click to clear Form Data
Private Sub cmdclear_Click()
Textz1.Text = ""
TextZ2.Text = ""
TextZ3.Text = ""
TextV1.Text = ""
TextJ1.Text = ""
TextJ2.Text = ""
TextJ3.Text = ""

lble.Caption = ""
lblj1.Caption = ""
lble2.Caption = ""
lbldeg.Caption = ""
lblzth.Caption = ""
lblj2.Caption = ""
lblres.Caption = ""
lbldeg2.Caption = ""

Label11.Caption = ""
Label14.Caption = ""
Label13.Caption = ""
Label16.Caption = ""


End Sub

Private Sub Command2_Click()
frmresistance.Show
AC.Hide
End Sub
Private Sub exit_Click()
'Click to show program end message
dummy = MsgBox("thank you for using azi programming©", , "Good Bye")
'End Program
End
End Sub

Private Sub Label11_Click()
Label11.Caption = "e =  "
Label12.Caption = "j "

End Sub

Private Sub Timer1_Timer()
Label8.Caption = Hour(Time)
Label9.Caption = Minute(Time)
Label10.Caption = Second(Time)

End Sub

Private Sub txttime_Change()
Labe8.Caption = Hour(Time)
Labe9.Caption = Minute(Time)
Labe10.Caption = Second(Time)

End Sub

Private Sub textz1_KeyPress(KeyAscii As Integer)
    Select Case KeyAscii
        Case Asc("0") To Asc("9"), 8
            ' Do nothing
        Case Else
        dummy = MsgBox("please enter a number ", , "Error")
        
    End Select
End Sub
Private Sub textz2_KeyPress(KeyAscii As Integer)
    Select Case KeyAscii
        Case Asc("0") To Asc("9"), 8
            ' Do nothing
        Case Else
        dummy = MsgBox("please enter a number ", , "Error")
        
    End Select
End Sub
Private Sub textz3_KeyPress(KeyAscii As Integer)
    Select Case KeyAscii
        Case Asc("0") To Asc("9"), 8
            ' Do nothing
        Case Else
        dummy = MsgBox("please enter a number ", , "Error")
        
    End Select
End Sub
Private Sub textj1_KeyPress(KeyAscii As Integer)
    Select Case KeyAscii
        Case Asc("0") To Asc("9"), 8
            ' Do nothing
        Case Else
        dummy = MsgBox("please enter a number ", , "Error")
        
    End Select
End Sub
Private Sub textj2_KeyPress(KeyAscii As Integer)
    Select Case KeyAscii
        Case Asc("0") To Asc("9"), 8
            ' Do nothing
        Case Else
        dummy = MsgBox("please enter a number ", , "Error")
        
    End Select
End Sub
Private Sub textj3_KeyPress(KeyAscii As Integer)
    Select Case KeyAscii
        Case Asc("0") To Asc("9"), 8
            ' Do nothing
        Case Else
        dummy = MsgBox("please enter a number ", , "Error")
        
    End Select
End Sub
Private Sub textv1_KeyPress(KeyAscii As Integer)
    Select Case KeyAscii
        Case Asc("0") To Asc("9"), 8
            ' Do nothing
        Case Else
        dummy = MsgBox("please enter a number ", , "Error")
        
    End Select
End Sub
