KOD KISMI
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 saat
{
public partial class Form1 : Form
{
int dakika, saniye, salise;
public Form1()
{
InitializeComponent();
}
private void
Form1_Load(object sender, EventArgs e)
{
}
private void
button1_Click(object sender, EventArgs e)
{
dakika = 02;
saniye = 01;
salise = 1;
timer1.Enabled = true;
timer1.Interval = 10;
}
private void
timer1_Tick(object sender, EventArgs e)
{
salise -= 1;
label1.Text = (salise / 3600).ToString("00");
label2.Text = ((salise % 3600) / 60).ToString("00");
label3.Text = (salise % 60).ToString("00");
button1.Text = "SIFIRLA";
if (salise == 00 && dakika == 00 &&
saniye == 00)
{
timer1.Stop();
}
}
private void
groupBox1_Enter(object sender, EventArgs e)
{
}
}
}
ONUR TAŞKIN
Hiç yorum yok:
Yorum Gönder