1.form窗体中设置了背景图片,想在又想去掉,怎么办?
在属性里找 picture ,然后 del 就可以清除
2.行合并 & 合并内容居中显示
Private Sub DataGrid_Click()
''1行合并
DataGrid.MergeCells = 1
i = 0
DataGrid.MergeRow(i) = True
''2行合并
DataGrid.MergeCells = 1
i = 1
DataGrid.MergeRow(i) = True
'居中
DataGrid.Cell(flexcpAlignment, 0, 0, 2, 2) = flexAlignCenterCenter
'VSFlexGrid.MergeCells = 1
''行合并
'For i = 0 To VSFlexGrid.Rows - 1
'VSFlexGrid.MergeRow(i) = True
'Next
''列合并
'For i = 0 To VSFlexGrid.Cols - 1
'VSFlexGrid.MergeCol(i) = True
'Next
'然后在要合并的单元格中,内容设为全部一样,即可看到结果
End Sub
3.千分符 Format( 111222333444.55, “standard”)
DataGrid.TextMatrix(DataGrid.Rows - 1, 3) = Format(rs(3), "standard")
4.改textbox的字号