Gets or sets the object used to marshal event-handler calls that are issued when an interval has elapsed.
Assembly: System (in System.dll)
<BrowsableAttribute(False)> <TimersDescriptionAttribute("TimerSynchronizingObject")> Public Property SynchronizingObject As ISynchronizeInvoke
When the Elapsed event is handled by a visual Windows Forms component, such as a button, accessing the component through the system-thread pool might result in an exception or just might not work. Avoid this effect by setting to a Windows Forms component, which causes the method that handles the Elapsed event to be called on the same thread that the component was created on.
Even if the Elapsed events can occur after the Dispose or Stop method has been called or after the Enabled property has been set to false, because the signal to raise the Elapsed event is always queued for execution on a thread pool thread. One way to resolve this race condition is to set a flag that tells the event handler for the Elapsed event to ignore subsequent events.property is not null,
If the Timer is used inside Visual Studio in a Windows Forms designer, is automatically set to the control that contains the Timer. For example, if you place a Timer on a designer for Form1 (which inherits from Form), the property of Timer is set to the instance of Form1.
Available since 1.1