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

📄 调查表.frm

📁 好用啊
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "调查表"
   ClientHeight    =   3750
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3750
   ScaleWidth      =   4680
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton cmdSum 
      Caption         =   "汇总"
      Height          =   375
      Left            =   3480
      TabIndex        =   17
      Top             =   2760
      Width           =   1095
   End
   Begin VB.Frame fraHobby 
      Caption         =   "爱好"
      Height          =   2535
      Left            =   2640
      TabIndex        =   16
      Top             =   120
      Width           =   1935
      Begin VB.CheckBox chkCChess 
         Caption         =   "象棋"
         Enabled         =   0   'False
         Height          =   255
         Left            =   600
         TabIndex        =   23
         Top             =   2160
         Width           =   975
      End
      Begin VB.CheckBox chkWChess 
         Caption         =   "围棋"
         Enabled         =   0   'False
         Height          =   375
         Left            =   600
         TabIndex        =   22
         Top             =   1680
         Width           =   855
      End
      Begin VB.CheckBox chkChess 
         Caption         =   "下棋"
         Height          =   255
         Left            =   240
         TabIndex        =   21
         Top             =   1320
         Width           =   1095
      End
      Begin VB.CheckBox chkSing 
         Caption         =   "唱歌"
         Height          =   255
         Left            =   240
         TabIndex        =   20
         Top             =   960
         Width           =   855
      End
      Begin VB.CheckBox chkDance 
         Caption         =   "跳舞"
         Height          =   255
         Left            =   240
         TabIndex        =   19
         Top             =   600
         Width           =   735
      End
      Begin VB.CheckBox chkComputer 
         Caption         =   "计算机"
         Height          =   255
         Left            =   240
         TabIndex        =   18
         Top             =   240
         Width           =   1095
      End
   End
   Begin VB.Frame fraNation 
      Caption         =   "民族"
      Height          =   975
      Left            =   120
      TabIndex        =   8
      Top             =   2160
      Width           =   2295
      Begin VB.OptionButton optMeng 
         Caption         =   "蒙"
         Height          =   255
         Left            =   1560
         TabIndex        =   14
         Top             =   600
         Width           =   615
      End
      Begin VB.OptionButton optWei 
         Caption         =   "维"
         Height          =   255
         Left            =   840
         TabIndex        =   13
         Top             =   600
         Width           =   615
      End
      Begin VB.OptionButton optZhuang 
         Caption         =   "壮"
         Height          =   255
         Left            =   240
         TabIndex        =   12
         Top             =   600
         Width           =   615
      End
      Begin VB.OptionButton optMan 
         Caption         =   "满"
         Height          =   255
         Left            =   1560
         TabIndex        =   11
         Top             =   240
         Width           =   495
      End
      Begin VB.OptionButton optHui 
         Caption         =   "回"
         Height          =   255
         Left            =   840
         TabIndex        =   10
         Top             =   240
         Width           =   735
      End
      Begin VB.OptionButton optHan 
         Caption         =   "汉"
         Height          =   255
         Left            =   240
         TabIndex        =   9
         Top             =   240
         Value           =   -1  'True
         Width           =   615
      End
   End
   Begin VB.HScrollBar hsbAge 
      Height          =   375
      LargeChange     =   5
      Left            =   1320
      Max             =   60
      Min             =   18
      TabIndex        =   5
      Top             =   1560
      Value           =   18
      Width           =   1095
   End
   Begin VB.Frame FraSex 
      Caption         =   "性别"
      Height          =   615
      Left            =   120
      TabIndex        =   4
      Top             =   720
      Width           =   2295
      Begin VB.OptionButton optFemale 
         Caption         =   "女"
         Height          =   255
         Left            =   1320
         TabIndex        =   7
         Top             =   240
         Width           =   735
      End
      Begin VB.OptionButton optMale 
         Caption         =   "男"
         Height          =   255
         Left            =   480
         TabIndex        =   6
         Top             =   240
         Value           =   -1  'True
         Width           =   615
      End
   End
   Begin VB.TextBox txtAge 
      Height          =   375
      Left            =   600
      TabIndex        =   3
      Top             =   1560
      Width           =   615
   End
   Begin VB.TextBox txtName 
      Height          =   375
      Left            =   600
      TabIndex        =   0
      Top             =   120
      Width           =   1815
   End
   Begin VB.Label lblStatus 
      BorderStyle     =   1  'Fixed Single
      Height          =   495
      Left            =   0
      TabIndex        =   15
      Top             =   3240
      Width           =   4695
   End
   Begin VB.Label lblAge 
      Caption         =   "年龄"
      Height          =   255
      Left            =   120
      TabIndex        =   2
      Top             =   1680
      Width           =   615
   End
   Begin VB.Label lblName 
      Caption         =   "姓名"
      Height          =   255
      Left            =   120
      TabIndex        =   1
      Top             =   240
      Width           =   615
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
    
    Private Sub chkChess_Click()
        If chkChess.Value = 0 Then
             chkWChess.Enabled = False
             chkCChess.Enabled = False
             chkWChess.Value = 0
             chkCChess.Value = 0
        Else
             chkWChess.Enabled = True
             chkCChess.Enabled = True
        End If
    End Sub
    
    Private Sub hsbAge_Change()
        txtAge.Text = hsbAge.Value
    End Sub
    
    Private Sub hsbAge_Scroll()
        txtAge.Text = hsbAge.Value
    End Sub
    
    Private Sub cmdSum_Click()
        Dim strSum As String
        strSum = "姓名:" & txtName.Text
        If optMale.Value = True Then
            strSum = strSum & ",性别:男"
        Else
            strSum = strSum & ",性别:女"
        End If
        
        strSum = strSum & ",年龄:" & CStr(txtAge.Text)
        
        If optHan.Value = True Then strSum = strSum & ",民族:汉"
        If optHui.Value = True Then strSum = strSum & ",民族:回"
        If optMan.Value = True Then strSum = strSum & ",民族:满"
        If optZhuang.Value = True Then strSum = strSum & ",民族:壮"
        If optWei.Value = True Then strSum = strSum & ",民族:维"
        If optMeng.Value = True Then strSum = strSum & ",民族:蒙"
        
        If chkComputer.Value = 1 Or chkDance.Value = 1 Or chkSing.Value = 1 _
            Or chkWChess.Value = 1 Or chkCChess.Value = 1 Then
            strSum = strSum & ",爱好:"
        End If
        
        If chkComputer.Value = 1 Then strSum = strSum & "计算机"
        If chkDance.Value = 1 Then strSum = strSum & "跳舞"
        If chkSing.Value = 1 Then strSum = strSum & "唱歌"
        If chkWChess.Value = 1 Then strSum = strSum & "围棋"
        If chkCChess.Value = 1 Then strSum = strSum & "象棋"
        lblStatus.Caption = strSum
    End Sub
    

⌨️ 快捷键说明

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