|
'In general section
Private Declare Function GetBkColor Lib "gdi32" (ByVal hDC As Long) As Long
Private Sub Timer1_Timer()
'KPD-Team 1998
'URL: http://www.allapi.net/
'E-Mail: KPDTeam@Allapi.net
'Set the Form's backcolor
Me.BackColor = RGB(Int(Rnd*255), Int(Rnd*255), Int(Rnd*255))
'Get the backcolor
Msgbox "My backcolor is:" + Str$(GetBkColor(Me.hDC))
End Sub
|
|