Click here to Skip to main content
15,881,089 members
Articles / Programming Languages / C#
Article

Animate the Mainform of your Application

Rate me:
Please Sign up or sign in to vote.
4.89/5 (26 votes)
31 Jan 2003 145.4K   2.1K   75   17
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.

License

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


Written By
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? Pin
cgordon_131-Mar-12 4:02
cgordon_131-Mar-12 4:02 
Generalseperate source and exe Pin
praveenqwe9-May-06 1:57
praveenqwe9-May-06 1:57 
Generalnice work go on Pin
Taha Elsayed24-Sep-04 15:23
Taha Elsayed24-Sep-04 15:23 
QuestionMemory leaks??? Pin
trissanen@hotmail.com10-May-04 18:49
trissanen@hotmail.com10-May-04 18:49 
Memory leaks???Cry | :((
AnswerEh? Pin
The_Mega_ZZTer3-Oct-05 2:18
The_Mega_ZZTer3-Oct-05 2:18 
Generalalpha blending Pin
Rob Tomson22-Feb-04 21:03
Rob Tomson22-Feb-04 21:03 
GeneralThis is great Pin
Agent 862-Jan-04 20:49
Agent 862-Jan-04 20:49 
GeneralRe: This is great Pin
Marc Schneider3-Jan-04 2:10
Marc Schneider3-Jan-04 2:10 
GeneralLayeredWindows Pin
Roger Alsing3-Feb-03 22:27
Roger Alsing3-Feb-03 22:27 
GeneralRe: LayeredWindows Pin
Marc Schneider3-Feb-03 23:38
Marc Schneider3-Feb-03 23:38 
GeneralRe: LayeredWindows Pin
lsauer7-Sep-03 6:02
lsauer7-Sep-03 6:02 
GeneralRe: LayeredWindows Pin
The_Mega_ZZTer3-Oct-05 2:19
The_Mega_ZZTer3-Oct-05 2:19 
GeneralThat was Fun! Pin
Rocky Moore2-Feb-03 0:38
Rocky Moore2-Feb-03 0:38 
GeneralRe: That was Fun! Pin
Marc Schneider3-Feb-03 23:40
Marc Schneider3-Feb-03 23:40 
QuestionDo you know how to control Gif Animation in Label Class ? Pin
Chris Richner1-Feb-03 8:25
Chris Richner1-Feb-03 8:25 
AnswerRe: Do you know how to control Gif Animation in Label Class ? Pin
Marc Schneider1-Feb-03 9:32
Marc Schneider1-Feb-03 9:32 
GeneralRe: Do you know how to control Gif Animation in Label Class ? Pin
Chris Richner1-Feb-03 9:42
Chris Richner1-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.