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

📄 form0408.frm

📁 VB实验教程源码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "学生信息"
   ClientHeight    =   3510
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   8190
   LinkTopic       =   "Form1"
   ScaleHeight     =   3510
   ScaleWidth      =   8190
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command1 
      Caption         =   "显示"
      Height          =   495
      Left            =   3120
      TabIndex        =   12
      Top             =   2760
      Width           =   1455
   End
   Begin VB.TextBox Text3 
      Height          =   2415
      Left            =   5640
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   11
      Top             =   120
      Width           =   2295
   End
   Begin VB.TextBox Text1 
      Height          =   495
      Left            =   1440
      TabIndex        =   10
      Top             =   120
      Width           =   1335
   End
   Begin VB.ComboBox Combo1 
      Height          =   300
      ItemData        =   "Form0408.frx":0000
      Left            =   2160
      List            =   "Form0408.frx":0013
      TabIndex        =   8
      Text            =   "计算机学院"
      Top             =   1200
      Width           =   1455
   End
   Begin VB.Frame Frame1 
      Caption         =   "性别"
      Height          =   1335
      Left            =   480
      TabIndex        =   3
      Top             =   1200
      Width           =   1335
      Begin VB.OptionButton Option2 
         Caption         =   "女"
         Height          =   255
         Left            =   120
         TabIndex        =   5
         Top             =   840
         Width           =   975
      End
      Begin VB.OptionButton Option1 
         Caption         =   "男"
         Height          =   375
         Left            =   120
         TabIndex        =   4
         Top             =   360
         Value           =   -1  'True
         Width           =   975
      End
   End
   Begin VB.TextBox Text2 
      Height          =   495
      Left            =   4080
      TabIndex        =   2
      Top             =   120
      Width           =   1335
   End
   Begin VB.ListBox List1 
      Height          =   1140
      ItemData        =   "Form0408.frx":0045
      Left            =   4080
      List            =   "Form0408.frx":006D
      TabIndex        =   0
      Top             =   1200
      Width           =   1215
   End
   Begin VB.Label Label1 
      Caption         =   "学号:"
      Height          =   375
      Left            =   480
      TabIndex        =   9
      Top             =   240
      Width           =   975
   End
   Begin VB.Label Label4 
      Caption         =   "系别:"
      Height          =   255
      Left            =   2160
      TabIndex        =   7
      Top             =   840
      Width           =   1095
   End
   Begin VB.Label Label3 
      Caption         =   "籍贯:"
      Height          =   375
      Left            =   4080
      TabIndex        =   6
      Top             =   840
      Width           =   1335
   End
   Begin VB.Label Label2 
      Caption         =   "姓名:"
      Height          =   375
      Left            =   3240
      TabIndex        =   1
      Top             =   240
      Width           =   735
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
'单击显示按钮
    Text3 = "学号:" & Text1 & Chr(13) + Chr(10)
    Text3 = Text3 & "姓名:" & Text2 & Chr(13) + Chr(10)
    If Option1.Value = True Then
        Text3 = Text3 & "性别:" & "男" & Chr(13) + Chr(10)
    Else
        Text3 = Text3 & "性别:" & "女" & Chr(13) + Chr(10)
    End If
    Text3 = Text3 & "籍贯:" & List1.Text & Chr(13) + Chr(10)
    Text3 = Text3 & "系别:" & Combo1.Text & Chr(13) + Chr(10)
End Sub

⌨️ 快捷键说明

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