// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace E { public partial class Form1 : Form { private Timer t; public Form1() { InitializeComponent(); t = new Timer(); t.Interval = 5000; t.Tick += new EventHandler(t_Tick); } private void button1_Click(object sender, EventArgs e) { label1.Text = "Bøh"; t.Start(); } void t_Tick(object sender, EventArgs e) { label1.Text = ""; t.Stop(); } } }