VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



'Get Background color of a device context using GetBkColor API

by Karthikeyan (187 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Tue 23rd January 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

'Get Background color of a device context using GetBkColor API

Rate 'Get Background color of a device context using GetBkColor API



Me.BackColor = &H12C034
MsgBox "Background color of form is " & Hex(GetBkColor(Me.hdc))
Me.BackColor = &HC0C0C0
MsgBox "Background color of form is " & Hex(GetBkColor(Me.hdc))
End
End Sub

Download this snippet    Add to My Saved Code

'Get Background color of a device context using GetBkColor API Comments

No comments have been posted about 'Get Background color of a device context using GetBkColor API. Why not be the first to post a comment about 'Get Background color of a device context using GetBkColor API.

Post your comment

Subject:
Message:
0/1000 characters