Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flashing colors in MSFlexgrid

Status
Not open for further replies.

Flupke

Programmer
Jun 26, 2002
94
BE
Hello,

In a VB6 MSFlexgrid, I would like to give a particular row a flashing color. Is that possible and how can I achieve this?

Many thanks and greetings from Brugge (Bruges - Belgium),

Michel
 
Private Sub Form_Load()
Timer1.Interval = 300
End Sub

Private Sub Timer1_Timer()
Dim i
Static blnColor As Boolean

With MSHFlexGrid1
.Row = 2
For i = 1 To .Cols - 1
.Col = i
.CellBackColor = IIf(blnColor, vbRed, vbWhite)
Next i
End With
blnColor = Not blnColor
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top