M
Michael
I have a form with several command buttons. One of them invokes the
following procedure.
On the form is a 'progress messae' called txtBuildBitmapsProgress.
What I want is for the message to blink.
When the procedure is executed the first message appears but does not blink.
After intervening processing the second message appears but does not blink.
After more processing the third message appears and it does blink.
I cannot understand the logic of why the messages do not blink from the
beginning.
(Other command buttons set the TimerInterval to 0 to stop the blinking ok.)
Any help would be appreciated.
All the best,
Michael.
------------------------------------------------------------------
Private Sub cmdBuildBmps_Click()
....
Me.TimerInterval = 500
Me.txtBuildBitmapsProgress = "Building Item Descriptions"
Me.Repaint
....
Me.txtBuildBitmapsProgress = "Building Bitmaps"
Me.Repaint
....
Me.txtBuildBitmapsProgress = "Complete"
Me.Repaint
End Sub
------------------------------------------------------------------
Private Sub Form_Timer()
Static blnBlink As Boolean
If blnBlink Then
' Show field
Me.txtBuildBitmapsProgress.Visible = True
Else
' Don't show field
Me.txtBuildBitmapsProgress.Visible = False
End If
blnBlink = Not blnBlink
End Sub
following procedure.
On the form is a 'progress messae' called txtBuildBitmapsProgress.
What I want is for the message to blink.
When the procedure is executed the first message appears but does not blink.
After intervening processing the second message appears but does not blink.
After more processing the third message appears and it does blink.
I cannot understand the logic of why the messages do not blink from the
beginning.
(Other command buttons set the TimerInterval to 0 to stop the blinking ok.)
Any help would be appreciated.
All the best,
Michael.
------------------------------------------------------------------
Private Sub cmdBuildBmps_Click()
....
Me.TimerInterval = 500
Me.txtBuildBitmapsProgress = "Building Item Descriptions"
Me.Repaint
....
Me.txtBuildBitmapsProgress = "Building Bitmaps"
Me.Repaint
....
Me.txtBuildBitmapsProgress = "Complete"
Me.Repaint
End Sub
------------------------------------------------------------------
Private Sub Form_Timer()
Static blnBlink As Boolean
If blnBlink Then
' Show field
Me.txtBuildBitmapsProgress.Visible = True
Else
' Don't show field
Me.txtBuildBitmapsProgress.Visible = False
End If
blnBlink = Not blnBlink
End Sub