I have a VB project that has a Borderless form. I'm trying to update its caption while it has been minimized, but I can't.
The code in the "Form" is is follows:
When I click on its "Minimized Caption Bar" or when it Loses Focus, its caption will be updated with the code in the Timer. But this is not what I'm looking for. I'd like to have it updated with the code in the Timer without gaining or losing focus.
I tested other ways. For example, I changed the code in "Sub myTimer_Timer() " to this:
or even to this:
Using these two tricks, I can have it updated according to the Interval set for the Timer. But the problem is that its "Minmized Caption Bar" blinks and is rather annoying.
How can I have it updated "Without Blinking"?
Thank you for your help.
The code in the "Form" is is follows:
Code:
Public myCounter As Integer
Private Sub cmdExit_Click()
End
End Sub
Private Sub cmdMinimize_Click()
Me.WindowState = vbMinimized
End Sub
Private Sub myTimer_Timer()
myCounter = myCounter + 1
Me.Caption = myCounter
End Sub
When I click on its "Minimized Caption Bar" or when it Loses Focus, its caption will be updated with the code in the Timer. But this is not what I'm looking for. I'd like to have it updated with the code in the Timer without gaining or losing focus.
I tested other ways. For example, I changed the code in "Sub myTimer_Timer() " to this:
Code:
Private Sub myTimer_Timer()
myCounter = myCounter + 1
Me.Show
Me.Caption = myCounter
End Sub
Code:
Private Sub myTimer_Timer()
myCounter = myCounter + 1
Me.SetFocus
Me.Caption = myCounter
End Sub
How can I have it updated "Without Blinking"?
Thank you for your help.
Comment