i try to set the color of a cell in msflexgtid, something like this, but it failed
msflexgrid1.cellforecolor = &h8000
please advise, thanks
HTH
cksiow
http://vblib.virtualave.net - share our codes
Printable View
i try to set the color of a cell in msflexgtid, something like this, but it failed
msflexgrid1.cellforecolor = &h8000
please advise, thanks
HTH
cksiow
http://vblib.virtualave.net - share our codes
Use the GetSysColor api to convert windows colors to real color values.
Private Declare Function GetSysColor Lib "user32" (ByVal nIndex As Long) As Long
C& = &h8000
msflexgrid1.cellforecolor = GetSysColor(C And &HFFFFFF)
MSFlexGrid1.CellForeColor = vbRed
Iouri Boutchkine
[email protected]
i forgot to place & at the back, should be
&h8000&
HTH
cksiow
http://vblib.virtualave.net - share our codes