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

📄 combo.frm

📁 vb编程+从基础到实践光盘代码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form combo 
   Caption         =   "Form1"
   ClientHeight    =   2520
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4140
   LinkTopic       =   "Form1"
   ScaleHeight     =   2520
   ScaleWidth      =   4140
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command1 
      Caption         =   "确认"
      Height          =   495
      Left            =   2520
      TabIndex        =   7
      Top             =   1320
      Width           =   1215
   End
   Begin VB.ComboBox Combo3 
      Height          =   300
      Left            =   960
      TabIndex        =   6
      Top             =   1560
      Width           =   1215
   End
   Begin VB.ComboBox Combo2 
      Height          =   300
      Left            =   960
      TabIndex        =   5
      Top             =   1080
      Width           =   1215
   End
   Begin VB.ComboBox Combo1 
      Height          =   300
      Left            =   960
      TabIndex        =   0
      Top             =   600
      Width           =   1215
   End
   Begin VB.Label Label6 
      Height          =   255
      Left            =   1800
      TabIndex        =   9
      Top             =   2160
      Width           =   1815
   End
   Begin VB.Label Label5 
      Caption         =   "您的出生日期是:"
      Height          =   255
      Left            =   120
      TabIndex        =   8
      Top             =   2160
      Width           =   1455
   End
   Begin VB.Label Label4 
      Caption         =   "出生日:"
      Height          =   375
      Left            =   120
      TabIndex        =   4
      Top             =   1680
      Width           =   1095
   End
   Begin VB.Label Label3 
      Caption         =   "出生月:"
      Height          =   375
      Left            =   120
      TabIndex        =   3
      Top             =   1200
      Width           =   1095
   End
   Begin VB.Label Label2 
      Caption         =   "出生年:"
      Height          =   375
      Left            =   120
      TabIndex        =   2
      Top             =   720
      Width           =   1095
   End
   Begin VB.Label Label1 
      Caption         =   "请正确填写你的出生日期:"
      Height          =   375
      Left            =   120
      TabIndex        =   1
      Top             =   120
      Width           =   2895
   End
End
Attribute VB_Name = "combo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Private Sub Form_Load()
Dim i As Integer, j As Integer
Dim k As Integer
For i = 1900 To 2005
 Combo1.AddItem Str(i)  '在组合框1中输入年的数据
Next i
For j = 1 To 12
 Combo2.AddItem Str(j)    '在组合框2中输入月的数据
Next j
For k = 1 To 31
Combo3.AddItem Str(k)
Next k
End Sub

Private Sub Command1_Click()
Label6.Caption = Combo1.Text & "年" & Combo2.Text & "月" & Combo3.Text & "日"
End Sub

⌨️ 快捷键说明

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