C # Start Screen Creation

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.