-
April 24th, 2002, 04:27 AM
#1
what can't msflexgrid cellforecolor accept negative value ?
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
-
April 24th, 2002, 06:59 AM
#2
Re: what can't msflexgrid cellforecolor accept negative value ?
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)
Please remember to rate the posts and threads that you find useful.
How can something be both new and improved at the same time?
-
April 24th, 2002, 07:02 AM
#3
Re: what can't msflexgrid cellforecolor accept negative value ?
MSFlexGrid1.CellForeColor = vbRed
Iouri Boutchkine
iouri@hotsheet.com
-
April 25th, 2002, 06:52 PM
#4
Re: what can't msflexgrid cellforecolor accept negative value ?
i forgot to place & at the back, should be
&h8000&
HTH
cksiow
http://vblib.virtualave.net - share our codes
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|