/ Published in: C#
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public Form1() { InitializeComponent(); IntPtr handle = this.Handle;//force creation of handle ThreadStart ts = delegate { //UI operations progressBar1.Value = 80; }; //executes synchronously on ts Thread Invoke(ts, null); }