C# Timer : Run function in interval time

Apa itu Timer function di dalam .NET C#?

~ ~ ~


Contoh code


public Form1() {
 InitializeComponent(); timer1 = new Timer();
 timer1.Tick += new EventHandler(timer1_Tick);
 timer1.Interval = 5000; // in miliseconds timer1.Start();
}


Rujukan

Execute specified function every X seconds - https://stackoverflow.com/a/6169305/10763264

C# - how do you stop a timer? - https://stackoverflow.com/a/4563738/10763264

Ulasan

Catatan popular daripada blog ini

SISTEM PENGOPERASIAN KOMPUTER (OS)

APA ITU ASCII (AMERICAN STANDARD CODE FOR INFORMATION INTERCHANGE) ?

APA ITU EBCDIC (EXTANDENT BINARY CODEC DECIMAL INTERCHANGE CODE) ?

JENIS-JENIS SISTEM PENGOPERASIAN KOMPUTER

Router CP2001/RS980+ dan Cara config