1

Topic: The timer

Who can prompt
I created the form and how to activate its timer? To install an actuating interval?

2

Re: The timer

In property of the form I install an interval of the timer and not that does not happen

3

Re: The timer

I use the Example
Does not work
Why?
In a following example it is shown how to create the blinking button in shape by means of display and tag concealment on the button. Processing procedure of event Loading sets for property the Interval of the timer value 1000 that tag display switched every second.
Sub Form_Load ()
Me. TimerInterval = 1000
End Sub
Sub Form_Timer ()
Static intShowPicture As Integer
If intShowPicture Then
' Show icon.
Me! btnPicture. Picture = "C:\Icons\Flash.ico"
Else
' Don't show icon.
Me! btnPicture. Picture = ""
End If
intShowPicture = Not intShowPicture
End Sub

4

Re: The timer

Similar I do not that it is necessary.
It is necessary to me that the form would be launched each 10 minutes and searched in a DB for the updated information and when finds displayed search results.

5

Re: The timer

;
Thanks,
But why it is impossible?

6

Re: The timer

,

7

Re: The timer

;
What I do not so?
- The form
- Property sheet
- Events
-In the timer a plotter? I select programs
- I interpose:
Sub Form_Load ()
Me. TimerInterval = 1000
End Sub
-I save
- I close the form
- I wait that will automatically be launched
- And the silence does not work

8

Re: The timer

_74, the timer hang up on  in another opened to the form. This  on the timer also opens the form which searches for something somewhere.

9

Re: The timer

_74;
Lesson of operation with the form timer
[youtube=dIJXFmxCMts]

10

Re: The timer

guest_rusimport;
So it is simple!!!
But not for me.
Easier it is possible???

11

Re: The timer

_74 wrote:

guest_rusimport;
So it is simple!!!
But not for me.
Easier it is possible???

It is possible and is easier - to employ the programmer, it makes for you smile