How to smoothly animate Windows Forms location with different speeds?

后端 未结 4 1479
走了就别回头了
走了就别回头了 2021-01-26 00:31

I\'ve been trying to smoothly animate some Windows Form location but I\'m having some issues if I want the speed to be variable. In other words, if I want to allow the user to s

4条回答
  •  有刺的猬
    2021-01-26 01:03

    If you got the results you want with a FPS value of 300 then I would go with that. The concept of Frames Per Second for WinForms is not the same as graphic-intensive video games, so a high value won't be a problem. The FPS value here simply adjusts how often the code is executed.

提交回复
热议问题