private void SetProgressBarValue_FormThread(int value) { this.Progress.Value = value; if (OsUtils.WinSevenOrLater() && this.IsHandleCreated) { this.tbarNotif.SetProgressValue(this, value, this.Progress.Maximum); } }