private void TextBox1_KeyPress(object sender, KeyPressEventArgs e)
{
string Symbol = e.KeyChar.ToString();
if (!Regex.Match(Symbol, @"[а-яА-Я]").Success && (Symbol != "\b"))
{
e.Handled = true;
}
int i;
private void Button1_Click(object sender, EventArgs e)
{
i = 45;
label1.Text = i.ToString();
timer1.Interval = 1000;
timer1.Enabled = true;
timer1.Start();
}
private void Timer1_Tick(object sender, EventArgs e)
{
label1.Text = (--i).ToString();
if (i < 0)
timer1.Stop();
}