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 Timer
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void timer1_Tick(object sender, EventArgs e)
{//Timer çalıştığında yapılacak olan işlemleri yazıyoruz.
listBox1.Items.Add("Bilgisayar programcılığı");
//Timer çalıştığında listbox'a yeni itemler yüklemek istiyoruz.
timer1.Interval = 50;
//Timer'ın çalışma süresinin milisaniye biçiminden belirtiyoruz.
//İstersek properties bölümünden aynı işlemi yapabiliriz.
//http://memoryhackers.org/
}
private void buttonBasla_Click(object sender, EventArgs e)
{//http://memoryhackers.org/
timer1.Start();
//Başla butonuna bastığımızda timer'ı başlatıyoruz.
}
private void buttonBitir_Click(object sender, EventArgs e)
{//http://memoryhackers.org/
timer1.Stop();
//Bitir butonuna bastığımızda timer'ı durduruyoruz.
}
}
}