How to move some objects (using the same timer) at an interval of time one to another?
1. i have 1 or more objects (they panel or button or picturebox or etc.)
2. have button (e.g. button1)
3. i have timer (e.g. timer1) move object right
4. when click on button1, want multitude of object move right (all objects accessing same timer1)
5. the idea is: want objects start moving right @ interval of 0.5 seconds 1 another.
what should do?
var observable = observable.timer(timespan.fromseconds(5), timespan.fromseconds(1)).timestamp();
var objects = panel.controls.where(p=>p.gettype()== button); observable.subscribe( x => //move objects using x , y coordinates );
jp cowboy coders unite!
Visual Studio Languages , .NET Framework > Visual C#
Comments
Post a Comment