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
Post a Comment