Random plaats = new Random();
btnStart.Content = "Stop";
Roadrunner.Margin = new Thickness(Left,50,0,0);
_timer.Start();
this is my code
Random plaats = new Random();
btnStart.Content = "Stop";
Roadrunner.Margin = new Thickness(Left,50,0,0);
_timer.Start();
this is my code
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jefferson S. MottaRank #207 · 11.7K reputationPosted Jan 26, 2023, 11:11 AM EST
Random plaats = new Random();
int x = plaats.Next(0, this.grid1.Size.Width - Roadrunner.Size.Width);
int y = plaats.Next(0, this.grid1.Size.Height - Roadrunner.Size.Height);
Roadrunner.Location = new Point(x, y);