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

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -