Code: Select all
If SetSysColors_(1,#COLOR_BACKGROUND,RGB(255,0,0))=0
Debug GetLastError_() ; Returns 998
EndIf

According to this VB article, the code above should work without problem:
http://allapi.mentalis.org/tips/tip8.shtml
Any suggestions? Thanks.