VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

SetColorBar

Miscellaneous   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021


' Creates a color bar background for a ListView when in
' report mode. Passing the listview and picturebox allows
' you to use this with more than one control. You can also
' change the colors used for each by passing new RGB color
' values in the optional color parameters.

Inputs
' Required - cListView As ListView ' Required - cColorBar As PictureBox ' Optional - lColor1 As Long ' Optional - lColor2 As Long

Assumes
' Add the following line of code to your program, ' replacing "lvListView" and "picColorBar" with the ' names of your own control values. The color values ' are optional; while the default is Green/White, ' these create gray bars. ' SetColorBar lvListView, picColorBar, &HC0C0C0, &H808080

Side Effects
' Sets ListView Picture to none if not in report ' mode or on error condition.

Rate SetColorBar (16(16 Vote))
SetColorBar.bas

SetColorBar Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters