I\'m trying to make a label display some text, and then after a short while refresh itself and be able to re-display something else later. At the moment however I don\'t know ho
I would use another thread for it:
labelWARNING.Visible = true;
labelWarningMessage.Text = "This module has a prerequisite module: " + item;
new Thread(() => {
Thread.Sleep(5000);
Dispatcher.BeginInvoke((Action)(() => { labelWARNING.Visible = false; }));
}).Start();
(this is for WPF, for WinForms should be essentially the same)