如题 怎么才能在MSHFlexGrid1或则其他表格控件里面的同一个单元格里面显示不同颜色字体的字符。

解决方案 »

  1.   

    好像是富文本那样的同时支持多色字吗?
    你不能把这种图贴上来,我们看不到的:file:///F:/1.bmp
      

  2.   

    先用grid.row和gird.col定位,再设置Grid.Cellbackcolor和GRID.Cellforecolor设置单元格背景色和前景色就可以了
      

  3.   

    Private Sub Form_Load()
    With MSFlexGrid1
      .Rows = 10
      .Cols = 10
      For i = 0 To .Rows - 1
      For j = 0 To .Cols - 1
          .Row = i
          .Col = j
          .CellBackColor = RGB(20 + i * 20, 20 + j * 20, 20 + i * 20)
      Next
      Next
     End With
    End Sub'不知这个是不是你想要的,这颜色值改动的不大,你可以另行改动吧