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

📄 frmsysdate.frm

📁 ktv场所的包房开房、迎宾、预定管理系统。
💻 FRM
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form FrmSysDate 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "系统日期"
   ClientHeight    =   1155
   ClientLeft      =   2760
   ClientTop       =   3750
   ClientWidth     =   5685
   ControlBox      =   0   'False
   Icon            =   "FrmSysDate.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1155
   ScaleWidth      =   5685
   ShowInTaskbar   =   0   'False
   Begin MSComCtl2.DTPicker SysDate 
      Height          =   315
      Left            =   1830
      TabIndex        =   0
      Top             =   390
      Width           =   2100
      _ExtentX        =   3704
      _ExtentY        =   556
      _Version        =   393216
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   11.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      CustomFormat    =   "yyyy年MM月dd日"
      Format          =   63438851
      UpDown          =   -1  'True
      CurrentDate     =   37800
   End
   Begin VB.CommandButton OKButton 
      Caption         =   "确定(&O)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   4245
      TabIndex        =   1
      Top             =   360
      Width           =   1215
   End
   Begin VB.Label Label1 
      Alignment       =   1  'Right Justify
      AutoSize        =   -1  'True
      Caption         =   "请输入系统日期:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   210
      Index           =   0
      Left            =   165
      TabIndex        =   2
      Top             =   420
      Width           =   1680
   End
End
Attribute VB_Name = "FrmSysDate"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Option Explicit
Public boolpd As Boolean

Private Sub Form_Load()
    SysDate.Value = Now
End Sub
Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer)
'    Dim strValid As String
'    strValid = "0123456789"
'    If KeyAscii = 13 Then
'        If Index < 2 Then
'            Text1(Index + 1).SelStart = 0
'            Text1(Index + 1).SelLength = Len(Text1(Index + 1).Text)
'            Text1(Index + 1).SetFocus
'        Else
'            OKButton.SetFocus
'        End If
'    End If
'    If KeyAscii > 26 Then
'        If InStr(strValid, Chr(KeyAscii)) = 0 Then
'            KeyAscii = 0
'        End If
'    End If
'    Select Case Index
'        Case 1
'            If Text1(Index).Text < 1 Or Text1(Index).Text > 12 Then
'            End If
'    End Select
End Sub

Private Sub OKButton_Click()
    If boolpd = True Then
        frmMain.datebeg = Format(SysDate.Value, "yyyy-MM-dd")
    Else
        dteSysDate = Format(SysDate.Value, "yyyy-MM-dd")
    End If
    Unload Me
End Sub

Private Sub SysDate_KeyDown(KeyCode As Integer, Shift As Integer)
        EnterToTab KeyCode
End Sub

⌨️ 快捷键说明

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