http://www.codeproject.com/KB/dialog/FadePage.aspx?msg=2771956

The Motivation

I required a fade/slide effect to replace a previous thread based approach that was using deprecated methods.

When consulting the oracle (Google), I was able to find more than a few articles that use opacity or utility type implementation of the AnimateWindow function, but I was looking for a solution to hide the functionality and keep things as simple as possible, so I created FadeForm.

The Objective

Write a class that implements/wraps the AnimateWindow function which can easily be added to existing code.

The Code

The FadePage Object

Create a new class that derives from System.Windows.Forms.Form which will allow us to extend the behavior of a standard form with the AnimateWindow method.

Copy Code
Copy Code
Copy Code

相关文章:

  • 2022-12-23
  • 2021-07-06
  • 2022-02-25
  • 2021-10-19
  • 2022-12-23
  • 2021-07-06
  • 2021-07-19
猜你喜欢
  • 2021-07-27
  • 2021-07-27
  • 2022-12-23
  • 2021-06-15
  • 2021-08-09
  • 2021-08-14
  • 2021-09-19
相关资源
相似解决方案