65.9K
CodeProject is changing. Read more.
Home

Animate the Mainform of your Application

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.89/5 (24 votes)

Feb 1, 2003

viewsIcon

146499

downloadIcon

2071

Shows how to change the visual style of the application form with an animation.

Sample Image - screenshot.jpg

Introduction

I wrote this code, because I'm interested in the new .NET functions which are available to change the look of the form of your application. With the region class and different background images you can easy change the look of forms and controls. I found the great Bitmap2Region class from Arild Fines in the Internet, which I must use in an application. The result is this funny walking rabbit form.

How to use this sample ?

Right click on the rabbit to get the context menu. There you can change the moving speed of the rabbit and quit the program.

Precondition

Enable the using of unsafe code for the Visual Studio .NET project.