Create a C # Windows Application
Program .
Copy the image file abc.icoand the background image hy.bmp to the directory,
Property-> copy to output directory-> always copy
Right-click Project-> properties-> application-> icon and list-> icon and change it to ABC. ICO.
The size of the background image is 352*302. Modify the size attribute of the form to 352*302.
Form
Code As follows:
Using System;
Using System. Collections. Generic;
Using System. componentmodel;
Using System. Data;
Using System. drawing;
Using System. LINQ;
Using System. text;
Using System. Windows. forms;
UsingSystem. diagnostics;
UsingMicrosoft. Win32;
Namespace Startsetup
{
Public Partial Class Frmstart: Form
{
Int Icount = 0 ;
Public Frmstart ()
{
Initializecomponent ();
// Startup Screen
This . Formborderstyle = Formborderstyle. None; // Remove external box
This . Backgroundimage = Image. fromfile ( " Hy.bmp " ); // Background Image
This . Startposition = Formstartposition. centerscreen; // Center of Screen
}
Private Void Frmstart_load ( Object Sender, eventargs E)
{
// Start Timer
Timer1.start ();
Timer1.interval = 100 ;
}
Private Void Timereffectick ( Object Sender, eventargs E)
{
If (Icount > 700 )
{
Application. Exit (); // After the animation is started ..
Return ;
}
Icount + = 10 ;
This . Opacity = 1 - Convert. todouble (icount) / 1000 ; // Reduced form transparency
}
}
}
Source code: http://files.cnblogs.com/greatverve/StartSetup.rar