?? form1.frm
字號:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form Form1
Caption = "合并單元格"
ClientHeight = 4740
ClientLeft = 60
ClientTop = 345
ClientWidth = 6210
Icon = "Form1.frx":0000
LinkTopic = "Form1"
ScaleHeight = 4740
ScaleWidth = 6210
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command1
Caption = "合并"
Height = 375
Left = 1515
TabIndex = 3
Top = 4200
Width = 1440
End
Begin VB.CommandButton Command2
Caption = "退出"
Height = 375
Left = 3135
TabIndex = 0
Top = 4200
Width = 1440
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "E:\明日vb編程500例\控件\msflexgrid控件\合并數據\程序\mrlc.mdb"
DefaultCursorType= 0 '缺省游標
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 420
Left = 525
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "rkd"
Top = 1620
Visible = 0 'False
Width = 1395
End
Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1
Bindings = "Form1.frx":000C
Height = 3630
Left = 90
TabIndex = 1
Top = 450
Width = 6000
_ExtentX = 10583
_ExtentY = 6403
_Version = 393216
Cols = 1
FixedCols = 0
BackColor = 16777215
BackColorFixed = 12632256
MergeCells = 3
AllowUserResizing= 3
Appearance = 0
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "入庫單查詢"
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 300
Left = 2445
TabIndex = 2
Top = 105
Width = 1335
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Activate()
'設置列寬
MSFlexGrid1.ColWidth(0) = 12 * 25 * 6
MSFlexGrid1.ColWidth(1) = 12 * 25 * 0
MSFlexGrid1.ColWidth(2) = 12 * 25 * 6
MSFlexGrid1.ColWidth(9) = 12 * 25 * 0
MSFlexGrid1.ColWidth(10) = 12 * 25 * 0
MSFlexGrid1.ColWidth(13) = 12 * 25 * 0
MSFlexGrid1.ColWidth(14) = 12 * 25 * 0
MSFlexGrid1.ColWidth(15) = 12 * 25 * 0
Data1.RecordSource = "select * from rkd order by 票號"
Data1.Refresh
End Sub
Private Sub Form_Load()
'自動識別數據庫路徑
Data1.DatabaseName = App.Path & "\mrlc.mdb"
Data1.Connect = ";pwd="
End Sub
Private Sub Command1_Click()
MSFlexGrid1.Sort = flexSortStringAscending
MSFlexGrid1.MergeCol(0) = True
MSFlexGrid1.MergeCol(2) = True
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -