private async Task UpdateScreenshot() { try { using (ScreenshotHelper helper = new ScreenshotHelper(Client)) { pictureBox1.Image = new Bitmap(new MemoryStream(await helper.StartAsync())); } } catch (Exception ex) { if (!this.IsDisposed) { MessageBox.Show(ex.Message); } } }