⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmquestions.frm

📁 这个代码却能真正教会电脑进行像人那样思考
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmQuestions 
   Caption         =   "Ask a question"
   ClientHeight    =   7515
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   8340
   Icon            =   "frmQuestions.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   7515
   ScaleWidth      =   8340
   StartUpPosition =   3  'Windows Default
   Begin VB.Frame Frame1 
      Caption         =   "Question"
      Height          =   3015
      Left            =   240
      TabIndex        =   9
      Top             =   1080
      Width           =   7815
      Begin VB.TextBox txtLocation 
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   9.75
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   3960
         TabIndex        =   2
         Top             =   1560
         Width           =   1575
      End
      Begin VB.CommandButton cmdLocation 
         Caption         =   "?"
         Height          =   375
         Left            =   5640
         TabIndex        =   16
         Top             =   1560
         Width           =   495
      End
      Begin VB.CommandButton cmdPurpose 
         Caption         =   "?"
         Height          =   375
         Left            =   4080
         TabIndex        =   15
         Top             =   960
         Width           =   495
      End
      Begin VB.TextBox txtPurpose 
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   9.75
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   2400
         TabIndex        =   1
         Top             =   960
         Width           =   1575
      End
      Begin VB.CommandButton cmdWhat 
         Caption         =   "?"
         Height          =   375
         Left            =   2760
         TabIndex        =   13
         Top             =   360
         Width           =   495
      End
      Begin VB.TextBox txtWhat 
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   9.75
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   1080
         TabIndex        =   0
         Top             =   360
         Width           =   1575
      End
      Begin VB.TextBox txtFirstObject 
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   9.75
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   3240
         TabIndex        =   3
         Top             =   2280
         Width           =   1575
      End
      Begin VB.TextBox txtSecondObject 
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   9.75
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   5520
         TabIndex        =   4
         Top             =   2280
         Width           =   1575
      End
      Begin VB.CommandButton cmdAsk 
         Caption         =   "?"
         Height          =   375
         Left            =   7200
         TabIndex        =   5
         Top             =   2280
         Width           =   495
      End
      Begin VB.Label Label7 
         BackStyle       =   0  'Transparent
         Caption         =   "What would you expect to find located in a "
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   9.75
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   120
         TabIndex        =   17
         Top             =   1560
         Width           =   3855
      End
      Begin VB.Label Label6 
         BackStyle       =   0  'Transparent
         Caption         =   "What is the purpose of a"
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   9.75
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   120
         TabIndex        =   14
         Top             =   960
         Width           =   2295
      End
      Begin VB.Label Label5 
         BackStyle       =   0  'Transparent
         Caption         =   "What is a"
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   9.75
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   120
         TabIndex        =   12
         Top             =   360
         Width           =   975
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "What is the relationship between a"
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   9.75
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   120
         TabIndex        =   11
         Top             =   2280
         Width           =   3135
      End
      Begin VB.Label Label3 
         BackStyle       =   0  'Transparent
         Caption         =   "and a"
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   9.75
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   4920
         TabIndex        =   10
         Top             =   2280
         Width           =   735
      End
   End
   Begin VB.TextBox txtResult 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   2775
      Left            =   360
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   7
      TabStop         =   0   'False
      Top             =   4560
      Width           =   7575
   End
   Begin VB.Label Label4 
      BackStyle       =   0  'Transparent
      Caption         =   "Answer"
      Height          =   255
      Left            =   360
      TabIndex        =   8
      Top             =   4320
      Width           =   2055
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "Quizmaster"
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   18
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   -1  'True
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   480
      TabIndex        =   6
      Top             =   360
      Width           =   2175
   End
   Begin VB.Image Image1 
      Height          =   810
      Left            =   3360
      Picture         =   "frmQuestions.frx":0742
      Stretch         =   -1  'True
      Top             =   120
      Width           =   4860
   End
   Begin VB.Shape Shape1 
      FillColor       =   &H00FFFFFF&
      FillStyle       =   0  'Solid
      Height          =   975
      Left            =   -120
      Top             =   0
      Width           =   9495
   End
End
Attribute VB_Name = "frmQuestions"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Dim OM As New ClassOpenMind



Private Sub cmdAsk_Click()
  Me.MousePointer = 11
  txtResult = OM.findRelationBetween(txtFirstObject, txtSecondObject)
  Me.MousePointer = 0
End Sub



Private Sub cmdLocation_Click()
  Me.MousePointer = 11
  txtResult = OM.findLocation(txtLocation)
  Me.MousePointer = 0
End Sub


Private Sub cmdPurpose_Click()
  Me.MousePointer = 11
  txtResult = OM.findPurpose(txtPurpose)
  Me.MousePointer = 0
End Sub



Private Sub cmdWhat_Click()
  Me.MousePointer = 11
  txtResult = OM.findWhat(txtWhat)
  Me.MousePointer = 0
End Sub




Private Sub txtLocation_KeyPress(KeyAscii As Integer)
  If (KeyAscii = 13) Then
    Me.MousePointer = 11
    txtResult = OM.findLocation(txtLocation)
    Me.MousePointer = 0
  End If
End Sub


Private Sub txtPurpose_KeyPress(KeyAscii As Integer)
  If (KeyAscii = 13) Then
    Me.MousePointer = 11
    txtResult = OM.findPurpose(txtPurpose)
    Me.MousePointer = 0
  End If
End Sub



Private Sub txtWhat_KeyPress(KeyAscii As Integer)
  If (KeyAscii = 13) Then
     Me.MousePointer = 11
     txtResult = OM.findWhat(txtWhat)
     Me.MousePointer = 0
  End If
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -