资源简介

一个用C#编写的软件启动界面特效,开启时伴随窗体渐变淡入淡出,窗体并由小变大,关闭时窗体则从顶部滑出,是一个很好的界面设计参考实例。

资源截图

代码片段和文件信息

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;

namespace kaiqidonghuan
{
    public partial class Formdonghua : Form
    {
        //动画窗体调用关闭时将向上移出屏幕
        [System.Runtime.InteropServices.DllImport(“user32“)]
        private static extern bool AnimateWindow(IntPtr hwnd int dwTime int dwFlags);
        const int AW_HOR_POSITIVE = 0x0001;
        const int AW_HOR_NEGATIVE = 0x0002;
        const int AW_VER_POSITIVE = 0x0004;
        const int AW_VER_NEGATIVE = 0x0008;
        const int AW_CENTER = 0x0010;
        const int AW_HIDE = 0x10000;
        const int AW_ACTIVATE = 0x20000;
        const int AW_SLIDE = 0x40000;
        const int AW_BLEND = 0x80000;
        //…………………………………………………………
        public Formdonghua()
        {
            InitializeComponent();
        }

        private void Formdonghua_Load(object sender EventArgs e)
        {
            //动画由小渐大现在取消
            AnimateWindow(this.Handle 1000 AW_CENTER | AW_ACTIVATE);

            //主界面渐变设置
            this.jianbian.Enabled = true;//让jianbian的timer值有效
            this.Opacity = 0;
            //………………………………………………
        }

        private void jianbian_Tick(object sender EventArgs e)
        {
            //让背景由0变到1
            if (this.Opacity < 1)
            {
                this.Opacity = this.Opacity + 0.05;
            }
            else
            {
                this.jianbian.Enabled = false;
            }
        }

        private void Formdonghua_FormClosing(object sender FormClosingEventArgs e)
        {//关闭时动画
            AnimateWindow(this.Handle 1000 AW_SLIDE | AW_HIDE | AW_VER_NEGATIVE);
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      71168  2012-03-15 22:06  漂亮的C#软件启动界面特效源码\kaiqidonghuan\bin\Debug\kaiqidonghuan.exe

     文件      28160  2012-03-15 22:06  漂亮的C#软件启动界面特效源码\kaiqidonghuan\bin\Debug\kaiqidonghuan.pdb

     文件      14328  2012-03-15 22:06  漂亮的C#软件启动界面特效源码\kaiqidonghuan\bin\Debug\kaiqidonghuan.vshost.exe

     文件        490  2009-06-11 05:14  漂亮的C#软件启动界面特效源码\kaiqidonghuan\bin\Debug\kaiqidonghuan.vshost.exe.manifest

     文件       2014  2008-09-13 15:25  漂亮的C#软件启动界面特效源码\kaiqidonghuan\Formdonghua.cs

     文件       2365  2008-09-13 15:25  漂亮的C#软件启动界面特效源码\kaiqidonghuan\Formdonghua.Designer.cs

     文件      93123  2008-09-13 15:25  漂亮的C#软件启动界面特效源码\kaiqidonghuan\Formdonghua.resx

     文件       3262  2008-09-13 15:22  漂亮的C#软件启动界面特效源码\kaiqidonghuan\GoldMoon.ico

     文件       3891  2008-09-13 15:22  漂亮的C#软件启动界面特效源码\kaiqidonghuan\kaiqidonghuan.csproj

     文件       1956  2012-03-15 22:06  漂亮的C#软件启动界面特效源码\kaiqidonghuan\obj\Debug\kaiqidonghuan.csproj.FileListAbsolute.txt

     文件        853  2008-09-13 15:25  漂亮的C#软件启动界面特效源码\kaiqidonghuan\obj\Debug\kaiqidonghuan.csproj.GenerateResource.Cache

     文件      71168  2012-03-15 22:06  漂亮的C#软件启动界面特效源码\kaiqidonghuan\obj\Debug\kaiqidonghuan.exe

     文件      58818  2012-03-15 22:06  漂亮的C#软件启动界面特效源码\kaiqidonghuan\obj\Debug\kaiqidonghuan.Formdonghua.resources

     文件      28160  2012-03-15 22:06  漂亮的C#软件启动界面特效源码\kaiqidonghuan\obj\Debug\kaiqidonghuan.pdb

     文件        180  2012-03-15 22:06  漂亮的C#软件启动界面特效源码\kaiqidonghuan\obj\Debug\kaiqidonghuan.Properties.Resources.resources

     文件        500  2008-09-13 15:13  漂亮的C#软件启动界面特效源码\kaiqidonghuan\Program.cs

     文件       1387  2008-09-13 15:22  漂亮的C#软件启动界面特效源码\kaiqidonghuan\Properties\AssemblyInfo.cs

     文件       2876  2008-09-13 15:12  漂亮的C#软件启动界面特效源码\kaiqidonghuan\Properties\Resources.Designer.cs

     文件       5612  2008-09-13 15:12  漂亮的C#软件启动界面特效源码\kaiqidonghuan\Properties\Resources.resx

     文件       1098  2008-09-13 15:12  漂亮的C#软件启动界面特效源码\kaiqidonghuan\Properties\Settings.Designer.cs

     文件        249  2008-09-13 15:12  漂亮的C#软件启动界面特效源码\kaiqidonghuan\Properties\Settings.settings

     文件        929  2008-09-13 15:12  漂亮的C#软件启动界面特效源码\kaiqidonghuan.sln

    ..A..H.     14848  2012-03-16 13:23  漂亮的C#软件启动界面特效源码\kaiqidonghuan.suo

     目录          0  2009-01-02 15:11  漂亮的C#软件启动界面特效源码\kaiqidonghuan\obj\Debug\Refactor

     目录          0  2009-01-02 15:11  漂亮的C#软件启动界面特效源码\kaiqidonghuan\obj\Debug\TempPE

     目录          0  2009-01-02 15:11  漂亮的C#软件启动界面特效源码\kaiqidonghuan\bin\Debug

     目录          0  2012-03-15 22:06  漂亮的C#软件启动界面特效源码\kaiqidonghuan\obj\Debug

     目录          0  2009-01-02 15:11  漂亮的C#软件启动界面特效源码\kaiqidonghuan\bin

     目录          0  2009-01-02 15:11  漂亮的C#软件启动界面特效源码\kaiqidonghuan\obj

     目录          0  2009-01-02 15:11  漂亮的C#软件启动界面特效源码\kaiqidonghuan\Properties

............此处省略5个文件信息

评论

共有 条评论