How can I add moving effects to my controls in C#?

前端 未结 4 1343
遇见更好的自我
遇见更好的自我 2020-11-29 04:01

I have a Panel In my C# form and I have a button. When I click on the Button the invisible Panel Shows. Instead of that I want the Panel to move in or slide in. For example

4条回答
  •  执念已碎
    2020-11-29 04:42

    For WinForms, you could start with the Panel location being off screen.

    Employ a Timer, and in the Tick event, shift the Panel's location slowly into view until it is at your predefined coordinates.

    Lots of ways to skin a cat, but this is how I'd do it.

提交回复
热议问题