1,451
社区成员
发帖
与我相关
我的任务
分享
Private Sub Form_Load()
With MSFlexGrid1
.Rows = 5
.Cols = 3
.FixedRows = 2
.FixedCols = 0
Text1.Text = "ID"
Text1.BorderStyle = 0
Text1.Height = .RowHeight(0)
Text1.Locked = True
Text1.Alignment = 2
Text1.BackColor = &H8000000F
Text1.Move .Left + .ColPos(0) + 60, .Top + .RowPos(0) + 60 + _
.RowHeight(0) / 2, .CellWidth - 15, .CellHeight
.TextMatrix(0, 1) = "时间"
.TextMatrix(0, 2) = "时间"
.TextMatrix(1, 1) = "计划时间"
.TextMatrix(1, 2) = "实际时间"
.FixedAlignment(0) = 4
.FixedAlignment(1) = 4
.FixedAlignment(2) = 4
.MergeCells = 1
.MergeRow(0) = True
.MergeRow(1) = False
.ColAlignment(-1) = 4
Dim R%, C%
For R = 2 To 4
For C = 0 To 2
.TextMatrix(R, C) = "1"
Next C, R
End With
End Sub
Private Sub Form_Load()
With MSFlexGrid1
.Rows = 5
.Cols = 3
.FixedRows = 2
.FixedCols = 0
.TextMatrix(0, 0) = "ID"
.TextMatrix(1, 0) = "ID"
.MergeCells = 1
.MergeCol(0) = True
.MergeCol(1) = False
.TextMatrix(0, 1) = "时间"
.TextMatrix(0, 2) = "时间"
.TextMatrix(1, 1) = "计划时间"
.TextMatrix(1, 2) = "实际时间"
.FixedAlignment(0) = 4
.FixedAlignment(1) = 4
.FixedAlignment(2) = 4
.MergeCells = 1
.MergeRow(0) = True
.MergeRow(1) = False
End With
End Sub
Private Sub Form_Load()
With MSFlexGrid1
.Rows = 5
.Cols = 3
.FixedRows = 2
.FixedCols = 0
.TextMatrix(0, 0) = "ID"
.TextMatrix(1, 0) = "ID"
.MergeCells = 1
.MergeCol(0) = True
.MergeCol(1) = False
.MergeRow(2) = False
.TextMatrix(0, 1) = "时间"
.TextMatrix(0, 2) = "时间"
.TextMatrix(1, 1) = "计划时间"
.TextMatrix(1, 2) = "实际时间"
.FixedAlignment(0) = 4
.FixedAlignment(1) = 4
.FixedAlignment(2) = 4
.MergeCells = 1
.MergeRow(0) = True
.MergeRow(1) = False
End With
End Sub