/ Published in: C#
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
using System.Threading; private void btnStart_Click(object sender, EventArgs e) { t.Start(); } private void AsyncGetResults() { // Do some not-GUI-touching stuff // ... // So some GUI-touching stuff if (panellWait.InvokeRequired) { { panelWait.Visible = true; })); } // Do some other not-GUI-touching stuff // ... }