Results 1 to 6 of 6

Thread: Animated Window Effects with "Toast" Popup Demo

Threaded View

  1. #1

    Thread Starter
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Animated Window Effects with "Toast" Popup Demo

    VB version here.

    FormAnimator class - A helper class that you can add an instance of to a form to provide animation when the form is shown, hidden or closed. Supported animations are Roll (form is unrolled and rolled up from one edge to the opposite), Centre (form unrolls from the centre out and rolls up from all edges in), Slide (form slides in and out from one edge to the opposite) and Blend (form fades in and out). Roll and Slide animations can be up, down, left, right or diagonal. To use this class just add a single line of code similar to this to your form:
    CSharp Code:
    1. private FormAnimator animator;
    2.  
    3. public Form1()
    4. {
    5.     InitializeComponent();
    6.  
    7.     this.animator = new FormAnimator(this,
    8.                                      FormAnimator.AnimationMethod.Slide,
    9.                                      FormAnimator.AnimationDirection.Up,
    10.                                      400);
    11. }
    NOTE: The C# Toast demo will be here soon. Watch this space.
    Attached Files Attached Files
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width