<PackageReference Include="System.Reactive" Version="4.1.3" />

ControlScheduler

Represents an object that schedules units of work on the message loop associated with a Windows Forms control.
public Control Control { get; }

Gets the control associated with the ControlScheduler.

public ControlScheduler(Control control)

Constructs a ControlScheduler that schedules units of work on the message loop associated with the specified Windows Forms control.

public IDisposable SchedulePeriodic<TState>(TState state, TimeSpan period, Func<TState, TState> action)

Schedules a periodic piece of work on the message loop associated with the control, using a Windows Forms Timer object.