【VB开源代码栏目提醒】:网学会员,鉴于大家对VB开源代码十分关注,论文会员在此为大家搜集整理了“30.frm”一文,供大家参考学习!
VERSION 5.00
Object = "{8E27C92E-1264-101C-8A2F-040224009C02}#7.0#0"; "MSCAL.OCX"
Begin VB.Form Form1
Caption = "系统日历表"
ClientHeight = 6045
ClientLeft = 60
ClientTop = 345
ClientWidth = 7830
LinkTopic = "Form1"
ScaleHeight = 6045
ScaleWidth = 7830
StartUpPosition = 1 '所有者中心
Begin VB.Frame Frame1
Caption = "日期操作"
BeginProperty Font
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000C000&
Height = 1935
Left = 120
TabIndex = 1
Top = 3720
Width = 7455
Begin VB.CommandButton CmdReset
Caption = "恢 复"
BeginProperty Font
Name = "楷体_GB2312"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 5880
TabIndex = 9
Top = 1320
Width = 1215
End
Begin VB.CommandButton CmdFind
Caption = "查 找"
BeginProperty Font
Name = "楷体_GB2312"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 4200
TabIndex = 8
Top = 1320
Width = 1215
End
Begin VB.TextBox TxtFind
Height = 375
Left = 1800
TabIndex = 7
Top = 1320
Width = 2175
End
Begin VB.CommandButton CmdLaterYear
Caption = "后一年"
BeginProperty Font
Name = "楷体_GB2312"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 5520
TabIndex = 5
Top = 480
Width = 1575
End
Begin VB.CommandButton CmdPreYear
Caption = "前一年"
BeginProperty Font
Name = "楷体_GB2312"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 3760
TabIndex = 4
Top = 480
Width = 1575
End
Begin VB.CommandButton CmdLaterMouth
Caption = "后一个月"
BeginProperty Font
Name = "楷体_GB2312"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2000
TabIndex = 3
Top = 480
Width = 1575
End
Begin VB.CommandButton CmdPreMouth
Caption = "前一个月"
BeginProperty Font
Name = "楷体_GB2312"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 240
TabIndex = 2
Top = 480
Width = 1575
End
Begin VB.Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "查找的日期"
BeginProperty Font
Name = "楷体_GB2312"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 360
TabIndex = 6
Top = 1387
Width = 1200
End
End
Begin MSACAL.Calendar Calendar1
Height = 3600
Left = 105
TabIndex = 0
Top = 60
Width = 7395
_Version = 524288
_ExtentX = 13044
_ExtentY = 6350
_StockProps = 1
BackColor = -2147483633
Year = 2008
Month = 9
Day = 17
DayLength = 0
MonthLength = 0
DayFontColor = 33023
FirstDay = 1
GridCellEffect = 2
GridFontColor = 49152
GridLinesColor = -2147483632
ShowDateSelectors= -1 'True
ShowDays = -1 'True
ShowHorizontalGrid= -1 'True
ShowTitle = -1 'True
ShowVerticalGrid= -1 'True
TitleFontColor = 49152
ValueIsNull = 0 'False
BeginProperty DayFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "楷体_GB2312"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty GridFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "楷体_GB2312"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty TitleFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "楷体_GB2312"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
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 CmdFind_Click()
Calendar1.Value = TxtFind.Text
End Sub
'查找下一个月的事件
Private Sub CmdLaterMouth_Click()
Calendar1.NextMonth
End Sub
'查找下一年的事件
Private Sub CmdLaterYear_Click()
Calendar1.NextYear
End Sub
'查找上一个月的事件
Private Sub CmdPreMouth_Click()
Calendar1.PreviousMonth
End Sub
'查找上一年的事件
Private Sub CmdPreYear_Click()
Calendar1.PreviousYear
End Sub
'恢复日期事件
Private Sub CmdReset_Click()
Calendar1.Today
End Sub
Private Sub Form_Load()
Dim strDate As String '定义字符串变量
strDate = Calendar1.Value '获得日历当前时间
strDate = Format$(strDate, "yyyy/mm/dd") '格式化获得的时间
TxtFind.Text = strDate '显示当前时间
End Sub
上一篇:
CRCSever.cpp
下一篇:
4种小菜缓解孕妈咪不适