by james kahl (8 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 5.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (3 Votes)
Ever get frustrated that when you change the background color of a form the forms border doesn't change as well. Now it can.
API DeclarationsGetSystemMetrics
GetWindowDC
ReleaseDC
CreatePen
DeleteObject
SelectObject
LineTo
OleTranslateColor
Download Color your Form's Border Based on the Background Color (3 KB)