VERSION 5.00
Begin VB.Form Form1 
   BackColor       =   &H00F7E8F4&
   Caption         =   "Form1"
   ClientHeight    =   6000
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   7440
   LinkTopic       =   "Form1"
   ScaleHeight     =   6000
   ScaleWidth      =   7440
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton exit 
      Caption         =   "Exit"
      Height          =   375
      Left            =   2880
      TabIndex        =   11
      Top             =   5400
      Width           =   1335
   End
   Begin VB.CommandButton result 
      Caption         =   "النتيجه النهائيه"
      Height          =   375
      Left            =   2880
      TabIndex        =   10
      Top             =   4800
      Width           =   1335
   End
   Begin VB.CommandButton chick 
      Caption         =   "لمعرفة صحة الاجابه المختاره"
      Height          =   375
      Left            =   2400
      TabIndex        =   9
      Top             =   3600
      Width           =   2295
   End
   Begin VB.CommandButton q3 
      Caption         =   "السؤال3"
      Height          =   615
      Left            =   720
      TabIndex        =   6
      Top             =   2520
      Width           =   1335
   End
   Begin VB.CommandButton q2 
      Caption         =   "السؤال2"
      Height          =   615
      Left            =   2760
      TabIndex        =   5
      Top             =   2520
      Width           =   1455
   End
   Begin VB.CommandButton q1 
      Caption         =   "السؤال1"
      Height          =   615
      Left            =   4920
      TabIndex        =   4
      Top             =   2520
      Width           =   1455
   End
   Begin VB.OptionButton ansser3 
      Height          =   495
      Left            =   480
      TabIndex        =   3
      Top             =   1560
      Width           =   1815
   End
   Begin VB.OptionButton ansser2 
      Height          =   495
      Left            =   2880
      TabIndex        =   2
      Top             =   1560
      Width           =   1935
   End
   Begin VB.OptionButton ansser1 
      Height          =   495
      Left            =   5400
      TabIndex        =   1
      Top             =   1560
      Width           =   1695
   End
   Begin VB.Label Label3 
      Caption         =   ":النتيجة النهائيه"
      Height          =   255
      Left            =   4080
      TabIndex        =   12
      Top             =   4320
      Width           =   1215
   End
   Begin VB.Label anssers 
      Height          =   375
      Left            =   2160
      TabIndex        =   8
      Top             =   4200
      Width           =   3135
   End
   Begin VB.Label Label1 
      Caption         =   ":السؤال"
      BeginProperty Font 
         Name            =   "MS Serif"
         Size            =   18
         Charset         =   178
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H008080FF&
      Height          =   495
      Left            =   4680
      TabIndex        =   7
      Top             =   480
      Width           =   855
   End
   Begin VB.Label q 
      Height          =   495
      Left            =   1080
      TabIndex        =   0
      Top             =   480
      Width           =   4575
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim f As Integer
Dim x As Integer
Dim y As Integer
Dim z As Integer

Private Sub Command2_Click()

End Sub

Private Sub chick_Click()
If f = "1" Then

   If ansser2.Value = True Then
   MsgBox "الاجابة صحيحه"
   Else
    MsgBox "الاجابة خاطئه"
End If

Else
If f = "2" Then
    If ansser1.Value = True Then
    MsgBox "الاجابة صحيحه"
    Else
    MsgBox "الاجابة خاطئه"
End If

Else
    If ansser3.Value = True Then
 MsgBox "الاجابة صحيحه"
    Else
    MsgBox "الاجابة خاطئه"
End If

End If
End If




   

End Sub

Private Sub exit_Click()
End
End Sub

Private Sub Form_Load()
ansser1.Visible = False
ansser2.Visible = False
ansser3.Visible = False
q.Visible = False
End Sub


Private Sub Label2_Click()

End Sub

Private Sub q1_Click()
ansser1.Visible = True
ansser2.Visible = True
ansser3.Visible = True
q.Visible = True

q1.Visible = False

q.Caption = "ماهو اسم المدينة المنوره سابقا؟"

ansser1.Caption = "ام القرى"

ansser2.Caption = "يثرب"

ansser3.Caption = "مكه"
f = "1"
End Sub

Private Sub q2_Click()
ansser1.Visible = True
ansser2.Visible = True
ansser3.Visible = True
q.Visible = True

q2.Visible = False
q.Caption = "اين ولد الرسول صلى الله عليه وسلم؟"

ansser1.Caption = "مكه"

ansser2.Caption = "المدينه"

ansser3.Caption = "نجران"
f = "2"
End Sub

Private Sub q3_Click()
ansser1.Visible = True
ansser2.Visible = True
ansser3.Visible = True
q.Visible = True

q3.Visible = False
q.Caption = "من هو اول من اسلم من الصحابه رضوان الله عليهم؟"

ansser1.Caption = "عثمان بن عفان"

ansser2.Caption = "علي بن ابي طالب"

ansser3.Caption = "ابو بكر الصديق"
f = "3"
End Sub

Private Sub result_Click()
If f = "1" Then
   If ansser2.Value = True Then
   x = 10
   Else
   x = 0
   End If
   
Else
If f = "2" Then
   If ansser1.Value = True Then
   y = 10
   Else
   y = 0
   End If
   
Else
If f = "3" Then
   If ansser3.Value = True Then
   z = 10
   Else
   z = 0
   End If
 End If
 End If
 End If
anssers.Caption = x + y + z

End Sub
