Here are the examples of the csharp api class System.Windows.Forms.Control.InvokeIfRequired(System.Action) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
0
1. Example
View licensepublic void NotifyTryAgain(string title, string message, Action TryAgain, Action Cancel, Action Download) { this.InvokeIfRequired(() => { mTryAgain = TryAgain; mCancel = Cancel; mDownload = Download; Notify(NotificationType.TryAgain, title, message); }); }
0
2. Example
View licenseprivate void hideTimer_Tick(object sender, EventArgs e) { this.InvokeIfRequired(() => { Fade(0); }); hideTimer.Stop(); }