Click here to Skip to main content
12,548,496 members (55,028 online)
Click here to Skip to main content
Add your own
alternative version


72 bookmarked

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 !

You may also be interested in...


Comments and Discussions

QuestionLicense? Pin
cgordon_131-Mar-12 4:02
membercgordon_131-Mar-12 4:02 
Generalseperate source and exe Pin
praveenqwe9-May-06 1:57
memberpraveenqwe9-May-06 1:57 
Generalnice work go on Pin
Taha Zayed24-Sep-04 15:23
memberTaha Zayed24-Sep-04 15:23 
QuestionMemory leaks??? Pin
trissanen@hotmail.com10-May-04 18:49
membertrissanen@hotmail.com10-May-04 18:49 
AnswerEh? Pin
The_Mega_ZZTer3-Oct-05 2:18
memberThe_Mega_ZZTer3-Oct-05 2:18 
Generalalpha blending Pin
Rob Tomson22-Feb-04 21:03
memberRob Tomson22-Feb-04 21:03 
GeneralThis is great Pin
Agent 862-Jan-04 20:49
memberAgent 862-Jan-04 20:49 
GeneralRe: This is great Pin
Marc Schneider3-Jan-04 2:10
memberMarc Schneider3-Jan-04 2:10 
GeneralLayeredWindows Pin
Roger J3-Feb-03 22:27
memberRoger J3-Feb-03 22:27 
GeneralRe: LayeredWindows Pin
Marc Schneider3-Feb-03 23:38
memberMarc Schneider3-Feb-03 23:38 
GeneralRe: LayeredWindows Pin
bloodyduke7-Sep-03 6:02
memberbloodyduke7-Sep-03 6:02 
GeneralRe: LayeredWindows Pin
The_Mega_ZZTer3-Oct-05 2:19
memberThe_Mega_ZZTer3-Oct-05 2:19 
GeneralThat was Fun! Pin
Rocky Moore2-Feb-03 0:38
memberRocky Moore2-Feb-03 0:38 
GeneralRe: That was Fun! Pin
Marc Schneider3-Feb-03 23:40
memberMarc Schneider3-Feb-03 23:40 
QuestionDo you know how to control Gif Animation in Label Class ? Pin
Jerry Maguire1-Feb-03 8:25
memberJerry Maguire1-Feb-03 8:25 
AnswerRe: Do you know how to control Gif Animation in Label Class ? Pin
Marc Schneider1-Feb-03 9:32
memberMarc Schneider1-Feb-03 9:32 
GeneralRe: Do you know how to control Gif Animation in Label Class ? Pin
Jerry Maguire1-Feb-03 9:42
memberJerry Maguire1-Feb-03 9:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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.161021.1 | Last Updated 1 Feb 2003
Article Copyright 2003 by Marc Schneider
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid