Advertisement
2002VB Miscellaneous #20037

Gradient Form Background (4 lines of code)

gradient your forms background

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Private Sub Command1_Click()
Dim Amount
Form1.AutoRedraw = True
Amount = (255 / ScaleHeight)
For i = 0 To Form1.ScaleHeight
  Form1.Line (0, i)-(ScaleWidth, i), _
  RGB(0, 0, Amount * i)
Next i
End Sub
Original Comments (3)
Recovered from Wayback Machine