?? 查詢.frm
字號:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form 查詢
BackColor = &H00E0E0E0&
BorderStyle = 3 'Fixed Dialog
Caption = "查詢"
ClientHeight = 7110
ClientLeft = 2760
ClientTop = 3750
ClientWidth = 10095
Icon = "查詢.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 7110
ScaleWidth = 10095
ShowInTaskbar = 0 'False
StartUpPosition = 1 '所有者中心
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 2160
Top = 1440
Width = 2655
_ExtentX = 4683
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = $"查詢.frx":000C
Caption = ""
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.CommandButton 打印
BackColor = &H00E0E0E0&
Caption = "打印"
Height = 375
Left = 7920
Style = 1 'Graphical
TabIndex = 1
Top = 6540
Width = 1335
End
Begin MSDataGridLib.DataGrid DataGrid1
Height = 6195
Left = 120
TabIndex = 0
Top = 120
Width = 9855
_ExtentX = 17383
_ExtentY = 10927
_Version = 393216
AllowUpdate = 0 'False
AllowArrows = -1 'True
ForeColor = -2147483630
HeadLines = 2
RowHeight = 14
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 2
BeginProperty Column00
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
MarqueeStyle = 3
RecordSelectors = 0 'False
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
End
Attribute VB_Name = "查詢"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'****************************************************************************
'人人為我,我為人人
'枕善居收藏整理
'發布日期:2008/05/11
'描 述:天宏鋼構倉庫管理系統 Ver 2.96
'網 站:http://www.Mndsoft.com/ (VB6源碼博客)
'網 站:http://www.VbDnet.com/ (VB.NET源碼博客,主要基于.NET2005)
'e-mail :Mndsoft@163.com
'e-mail :Mndsoft@126.com
'OICQ :88382850
' 如果您有新的好的代碼別忘記給枕善居哦!
'****************************************************************************
Option Explicit
Private Sub Form_Load()
Adodc1.ConnectionString = DataConnectString
Adodc1.Visible = False
End Sub
Private Sub Form_Resize()
On Error Resume Next
Set DataGrid1.DataSource = Adodc1
Adodc1.Refresh
Dim d As Integer
Dim inttype As Integer
If DataGrid1.Columns.count <= 2 Then
d = 600
Else
d = 50
End If
Dim i As Integer
For i = 0 To DataGrid1.Columns.count - 1
DataGrid1.Columns(i).width = Len(DataGrid1.Columns(i).caption) * d
inttype = Adodc1.Recordset.Fields(i).Type
Select Case inttype
Case dbBoolean
DataGrid1.Columns(i).width = DataGrid1.Columns(i).width + 500
Case dbByte
DataGrid1.Columns(i).width = DataGrid1.Columns(i).width + 500
Case dbInteger
DataGrid1.Columns(i).width = DataGrid1.Columns(i).width + 500
Case dbLong
DataGrid1.Columns(i).width = DataGrid1.Columns(i).width + 500
Case dbCurrency
DataGrid1.Columns(i).width = DataGrid1.Columns(i).width + 1000
Case dbSingle
DataGrid1.Columns(i).width = DataGrid1.Columns(i).width + 600
Case dbDouble
DataGrid1.Columns(i).width = DataGrid1.Columns(i).width + 700
Case dbDate
DataGrid1.Columns(i).width = DataGrid1.Columns(i).width + 800
Case dbText
DataGrid1.Columns(i).width = DataGrid1.Columns(i).width + 900
Case dbLongBinary
DataGrid1.Columns(i).width = DataGrid1.Columns(i).width + 1000
Case dbMemo
DataGrid1.Columns(i).width = DataGrid1.Columns(i).width + 1000
Case dbGUID
DataGrid1.Columns(i).width = DataGrid1.Columns(i).width + 1000
Case Else
DataGrid1.Columns(i).width = DataGrid1.Columns(i).width + 1000
End Select
Next
End Sub
Private Sub 打印_Click()
ShowPrintDlg Adodc1, "查詢結果"
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -