Custom animation

This is a timer that also contains methods that do multiple unique things. The sugested usage for all of these is to place the calling code in the tick event for the timer.

Color

Changes the color of a control by a regular amount.

Parameters.

1) ChangeR - The amount to change the red value

2) ChangeG - The amount to change the green value

3) ChangeB - The amount to change the blue value

4) ControlColor - The property of the cotrol to change E.G. control.backcolor

HeightAnimator

This sub changes the height of a control by a specific amount

Parameters.

1) Control - This is control that will be affected

2) ChangeBy - This is amount in pixels that the height will change to increase make it positive to decrease negative

3) ChangeCenter - If true the location will change to keep the center the same NOTE: Changes by odd numbers WILL have strange effects

WidthAnimator

This sub changes the height of a control by a specific amount

Parameters.

1) Control - This is control that will be affected
2) ChangeBy - This is amount in pixels that the width will change to increase make it positive to decrease negative
3) ChangeCenter - If true the location will change to keep the center the same NOTE: Changes by odd numbers WILL have strange effects

ImageAnimator

Places images from an image list into a specified PictureBox and raises the image index every call

Parameters.

1) Control - The control to animate
2) ImageList - The ImageList to pull from

Last edited Jul 21, 2010 at 8:51 PM by SMG, version 1

Comments

No comments yet.