📄 dbgridsample.frm
字号:
VERSION 5.00
Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
Begin VB.Form DBGridSample
BackColor = &H00FFFFFF&
Caption = "DBGridSample"
ClientHeight = 6960
ClientLeft = 855
ClientTop = 2850
ClientWidth = 9660
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 6960
ScaleWidth = 9660
Begin VB.CommandButton Command2
BackColor = &H00FFFFFF&
Caption = "Close"
Height = 345
Left = 8445
Style = 1 'Graphical
TabIndex = 4
Top = 105
Width = 810
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 177
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 4410
TabIndex = 2
Text = "Williams Gates "
Top = 1065
Width = 3330
End
Begin MSDBGrid.DBGrid DBGrid1
Bindings = "DBGridSample.frx":0000
Height = 3555
Left = 150
OleObjectBlob = "DBGridSample.frx":0010
TabIndex = 0
Top = 1980
Width = 9210
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "Publish.mdb"
DefaultCursorType= 0 'DefaultCursor
DefaultType = 2 'UseODBC
Exclusive = 0 'False
Height = 300
Left = 1200
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "Customers"
Top = 5010
Width = 2220
End
Begin VB.Image Image1
Height = 1500
Left = 600
Picture = "DBGridSample.frx":0EEB
Top = 150
Width = 3075
End
Begin VB.Shape Shape3
BackColor = &H000000FF&
BackStyle = 1 'Opaque
Height = 150
Left = 1590
Shape = 3 'Circle
Top = 1740
Width = 165
End
Begin VB.Shape Shape2
BackColor = &H000000FF&
BackStyle = 1 'Opaque
Height = 150
Left = 7005
Shape = 3 'Circle
Top = 1740
Width = 165
End
Begin VB.Line Line1
BorderWidth = 3
X1 = 1890
X2 = 6750
Y1 = 1815
Y2 = 1815
End
Begin VB.Label Label2
AutoSize = -1 'True
BackColor = &H00FFFF00&
Caption = "Enter Your Name"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 177
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 4500
TabIndex = 3
Tag = "noprint"
Top = 765
Width = 1770
End
Begin VB.Label Label1
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H80000005&
BorderStyle = 1 'Fixed Single
Caption = "Print DBGrid with RobOcx"
BeginProperty Font
Name = "Tahoma"
Size = 11.25
Charset = 177
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 330
Left = 4395
TabIndex = 1
Top = 285
Width = 3375
End
Begin VB.Shape Shape1
BackColor = &H00FFFF00&
BackStyle = 1 'Opaque
FillStyle = 7 'Diagonal Cross
Height = 1410
Left = 4245
Top = 45
Width = 3840
End
End
Attribute VB_Name = "DBGridSample"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
Data1.DatabaseName = App.Path & "\Publish.mdb"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -