DamianMorozov / WinForms.Utils

Utils for invoking WinForms conrols from async threads and tasks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WinForms.Utils - Utils for invoking WinForms conrols from async threads and tasks.

NuGet version NuGet downloads

WinForms.Utils

  • InvokeControl
  • InvokePictureBox
  • InvokeProgressBar
  • UtilsControl
  • UtilsProgressBar

WinForms.Utils.Tests

  • EnumValues
  • EnumWinForm
  • InvokeControlTests
  • InvokePictureBoxTests
  • InvokeProgressBarTests
  • UtilsControlTests
  • UtilsProgressBarTests

How to use

Example of usage:

var task = Task.Run(async () =>
{
    await Task.Delay(TimeSpan.FromMilliseconds(_timeout)).ConfigureAwait(true);
    InvokeControl.SetVisible(button, false);
});

Please, if this tool has been useful for you consider to donate or click on the star button

Buy me a coffee

About

Utils for invoking WinForms conrols from async threads and tasks.

License:MIT License


Languages

Language:C# 100.0%