For what you propose you can use System.Windows.Forms.Timer. In the following example, after 10 seconds, a text box is deleted (this behavior is defined in the timer handler (timer1_Tick), it stops with a Stop on the Timer instance.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApplication6
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void timer1_Tick(object sender, EventArgs e)
{
textBox1.Text = string.Empty;
}
private void setTimer()
{
System.Windows.Forms.Timer t = new System.Windows.Forms.Timer();
t.Interval = 10000; // Especificas el tiempo que queres en milisegundos. En este caso le puse 10 segundos
t.Tick += new EventHandler(timer1_Tick);
t.Start();
}
private void Form1_Load(object sender, EventArgs e)
{
setTimer();
}
}
}
Greetings and I hope it is of your use.