Introduction
To make Application Look Better we have use some Eye Candy to it.Like in Some Crack program you have seen When they Start They are Visible Smoothly Here We are going to make the same Fade Effect Animation using Very Simple Code.
Form While Initializing ... Form After fade Effect ..

Technologies:
Windows Form .net 2.0/3.5
Language:
C#
Prerequisite
1. .NET Framework 2.0/3.5 2. Visual Studio 2005/2008
Implementation
It is Very Simple to use this Code just 2-4 line of code
1.Timer 2.Form
-> Start With New Windows Form Project
-> Drag Drop Timer Component From the toolbar on to Form say Timer1
-> Set Timer's Interval Property to 2 Milisecond
Now to Display Fade Effect We Should First make the Form 100% Transperent Then After The Form Will be Displayed Smoothly. to Do So In Form' Load Event
Write Code like Below {codecitation class="brush: csharp; gutter: true;" width="650px"}
private void Form1_Load(object sender, EventArgs e) { // Set Form's Transperancy 100 % this.Opacity = 0; // Start the Timer To Animate Form timer1.Enabled = true; }
Now in Timer's Tick Event Write code ad Below
private void timer1_Tick(object sender, EventArgs e) { // Make Form Visible a Bit more on Every timer Tick this.Opacity += 0.01; }
{/codecitation}
Run Project You are Done
How incorporate/use in user project
Dragdrop Require components on Form . Set Properties and Write / Copy Source code Above and You are Done!!
Thank You | About the Author |
 | | Kirtan Patel | - Bachelor of Computer Application . - File Handling with C# - Registry Programming With C#. - Knowledge of Virus Programming . - Working With third party controls like Telerik and Component Factory . - P/invoke Win32 API. - SQL Server Database Applications - Client/Server Database Programming Expertise in : C# , Asp.net ,Vb.net , SQL Server , Designing Elegant look Web interface Familiar With : C/C++ , Core Java , Java Script , Dream weaver templates , fire Works , Photo shop Graphics ,PHP Databases: Microsoft SQL Server 2005 , Microsoft Access and Some MySQL Occupation: Student
|
|
|