int count; //用于定时器计数
int time; //存储设定的定时值

private void Form1_Load(object sender, EventArgs e)
{
int i;
for (i = 1; i < 100; i++) //计数范围 0-99
{
comboBox1.Items.Add(i.ToString() + " 秒"); //初始化下拉框内容
}
//label3.Text = "";
//comboBox1.Text = "1 秒";
}

private void timer1_Tick(object sender, EventArgs e) //定时器事件
{
//记录当前秒
count++;
label3.Text = (time - count).ToString() + "秒";//显示剩余时间
progressBar1.Value = count; //设置进度条进度
if(count == time)
{
timer1.Stop(); //时间到,停止计时
System.Media.SystemSounds.Asterisk.Play(); //提示音
MessageBox.Show("时间到了!","提示"); //弹出提示框
}
}

private void button1_Click(object sender, EventArgs e)//开始计时按钮事件
{
string str = comboBox1.Text; //将下拉框内容添加到一个变量中
string data = str.Substring(0, 2);    //从0开始截取两位
time = Convert.ToInt32(data); //得到设定定时值(整型)
progressBar1.Maximum = time; //进度条最大数值
timer1.Start(); //开始计时
}
}

菜鸟小白,当笔记记录,如有问题,欢迎留言。