c# - Using a timer to create and draw object on a specific time interval -


i want create , draw object class every 3 seconds, , objects appear on screen on random coordinates,and when click 1 of objects removed.

this simple timer initialization interval of 3 seconds. in event handle drawing new objects.

//timer initialization  var t = new timer(); t.tick += timereventprocessor; t.interval = 3000; t.start();   //event private void timereventprocessor(object myobject, eventargs myeventargs) {    //your drawing code } 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -