?? frmyear.frm
字號(hào):
VERSION 5.00
Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
Begin VB.Form frmyear
BorderStyle = 1 'Fixed Single
Caption = "小小收支薄-年度選擇"
ClientHeight = 3315
ClientLeft = 45
ClientTop = 330
ClientWidth = 6840
Icon = "frmyear.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3315
ScaleWidth = 6840
StartUpPosition = 1 'CenterOwner
Begin VB.CommandButton Comca
Caption = "取消"
BeginProperty Font
Name = "宋體"
Size = 9.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 4185
TabIndex = 5
Top = 2805
Width = 975
End
Begin VB.CommandButton Comok
Caption = "確定"
BeginProperty Font
Name = "宋體"
Size = 9.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 1635
TabIndex = 4
Top = 2820
Width = 975
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "C:\Program Files\DevStudio\VB\work\zb.mdb"
DefaultCursorType= 0 'DefaultCursor
DefaultType = 2 'UseODBC
Exclusive = 0 'False
Height = 345
Left = 2880
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "year"
Top = 1785
Visible = 0 'False
Width = 1155
End
Begin MSDBGrid.DBGrid DBGrid1
Align = 1 'Align Top
Bindings = "frmyear.frx":0442
Height = 2190
Left = 0
OleObjectBlob = "frmyear.frx":0452
TabIndex = 0
Top = 0
Width = 6840
End
Begin VB.Label Label3
Caption = "年度"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 300
Left = 4410
TabIndex = 3
Top = 2325
Width = 615
End
Begin VB.Label Label2
Caption = "1998"
BeginProperty Font
Name = "宋體"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 315
Left = 3570
TabIndex = 2
Top = 2310
Width = 810
End
Begin VB.Label Label1
Caption = "您所選擇的是:"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 300
Left = 1920
TabIndex = 1
Top = 2340
Width = 1725
End
End
Attribute VB_Name = "frmyear"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Comca_Click()
Unload Me
End Sub
Private Sub Comok_Click()
frmxb.myyear = Data1.Recordset.Fields(0)
Unload Me
End Sub
Private Sub DBGrid1_RowColChange(LastRow As Variant, ByVal LastCol As Integer)
Label2.Caption = Data1.Recordset.Fields(0)
End Sub
Private Sub Form_Load()
Data1.DatabaseName = App.Path + "\zb.mdb"
Label2.Caption = frmxb.myyear
End Sub
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -