Click here to Skip to main content
Click here to Skip to main content

Animate the Mainform of your Application

, 31 Jan 2003
Rate this:
Please Sign up or sign in to vote.
Shows how to change the visual style of the application form with an animation.

Sample Image - screenshot.jpg


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.


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


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Marc Schneider
Web Developer
Germany Germany
I'm currently working as a Computer Science Engineer for a german company which develops gambling machines. I program with VC++ 5.0 + OpenGL ! Privately I'm learning C# and ASP.NET !

Comments and Discussions

QuestionLicense? Pinmembercgordon_131-Mar-12 5:02 
Generalseperate source and exe Pinmemberpraveenqwe9-May-06 2:57 
Generalnice work go on PinmemberTaha Zayed24-Sep-04 16:23 
QuestionMemory leaks??? Pinmembertrissanen@hotmail.com10-May-04 19:49 
AnswerEh? PinmemberThe_Mega_ZZTer3-Oct-05 3:18 
Generalalpha blending PinmemberRob Tomson22-Feb-04 22:03 
GeneralThis is great PinmemberAgent 862-Jan-04 21:49 
GeneralRe: This is great PinmemberMarc Schneider3-Jan-04 3:10 
GeneralLayeredWindows PinmemberRoger J3-Feb-03 23:27 
GeneralRe: LayeredWindows PinmemberMarc Schneider4-Feb-03 0:38 
GeneralRe: LayeredWindows Pinmemberbloodyduke7-Sep-03 7:02 
GeneralRe: LayeredWindows PinmemberThe_Mega_ZZTer3-Oct-05 3:19 
GeneralThat was Fun! PinmemberRocky Moore2-Feb-03 1:38 
GeneralRe: That was Fun! PinmemberMarc Schneider4-Feb-03 0:40 
QuestionDo you know how to control Gif Animation in Label Class ? PinmemberJerry Maguire1-Feb-03 9:25 
AnswerRe: Do you know how to control Gif Animation in Label Class ? PinmemberMarc Schneider1-Feb-03 10:32 
GeneralRe: Do you know how to control Gif Animation in Label Class ? PinmemberJerry Maguire1-Feb-03 10:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150129.1 | Last Updated 1 Feb 2003
Article Copyright 2003 by Marc Schneider
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid