• 大小: 735KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-08
  • 语言: C#
  • 标签: Winform  

资源简介

Winform窗体动画载入和退出 动画的载入窗体效果,在退出时也附带动画效果。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
//该源码下载自C#编程网|www.cpbcw.com
namespace FalshWindows
{
    public partial class Form1 : Form
    {
        public const Int32 AW_HOR_POSITIVE = 0x00000001;
        public const Int32 AW_HOR_NEGATIVE = 0x00000002;
        public const Int32 AW_VER_POSITIVE = 0x00000004;
        public const Int32 AW_VER_NEGATIVE = 0x00000008;
        public const Int32 AW_CENTER = 0x00000010;
        public const Int32 AW_HIDE = 0x00010000;
        public const Int32 AW_ACTIVATE = 0x00020000;
        public const Int32 AW_SLIDE = 0x00040000;
        public const Int32 AW_BLEND = 0x00080000; 
        public Form1()
        {
            InitializeComponent();
            AnimateWindow(this.Handle 300 AW_SLIDE + AW_VER_NEGATIVE);
        }

        private void pictureBox1_Click(object sender EventArgs e)
        {

        }

        private void Form1_Load(object sender EventArgs e)
        {
            
        }
        [DllImportAttribute(“user32.dll“)]
        private static extern bool AnimateWindow(IntPtr hwnd int  dwTime int  dwFlags);

        private void Form1_FormClosed(object sender FormClosedEventArgs e)
        {
            AnimateWindow(this.Handle 300 AW_SLIDE + AW_VER_NEGATIVE + AW_HIDE);
        }
    }
}

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

     文件     207360  2012-01-26 13:47  FalshWindows\bin\Debug\FalshWindows.exe

     文件      19968  2012-01-26 13:47  FalshWindows\bin\Debug\FalshWindows.pdb

     文件      14328  2012-01-26 13:47  FalshWindows\bin\Debug\FalshWindows.vshost.exe

     文件        490  2009-06-11 05:14  FalshWindows\bin\Debug\FalshWindows.vshost.exe.manifest

     文件       3878  2009-02-23 10:54  FalshWindows\FalshWindows.csproj

     文件       1502  2012-01-26 13:47  FalshWindows\Form1.cs

     文件       2541  2009-02-23 10:53  FalshWindows\Form1.designer.cs

     文件       5814  2009-02-23 10:53  FalshWindows\Form1.resx

     文件        879  2012-01-26 13:47  FalshWindows\obj\Debug\FalshWindows.csproj.FileListAbsolute.txt

     文件        882  2012-01-26 13:47  FalshWindows\obj\Debug\FalshWindows.csproj.GenerateResource.Cache

     文件     207360  2012-01-26 13:47  FalshWindows\obj\Debug\FalshWindows.exe

     文件        180  2012-01-26 13:47  FalshWindows\obj\Debug\FalshWindows.Form1.resources

     文件      19968  2012-01-26 13:47  FalshWindows\obj\Debug\FalshWindows.pdb

     文件     198387  2012-01-26 13:47  FalshWindows\obj\Debug\FalshWindows.Properties.Resources.resources

     文件        493  2009-02-23 10:53  FalshWindows\Program.cs

     文件       1356  2009-02-23 10:53  FalshWindows\Properties\AssemblyInfo.cs

     文件       3091  2009-02-23 10:54  FalshWindows\Properties\Resources.Designer.cs

     文件       6190  2009-02-23 10:54  FalshWindows\Properties\Resources.resx

     文件       1096  2009-02-23 10:53  FalshWindows\Properties\Settings.Designer.cs

     文件        249  2009-02-23 10:53  FalshWindows\Properties\Settings.settings

     文件     197920  2009-02-23 10:53  FalshWindows\Resources\4.jpg

     文件        926  2009-02-23 10:53  FalshWindows.sln

    ..A..H.     15360  2012-01-26 13:47  FalshWindows.suo

     目录          0  2012-01-26 13:47  FalshWindows\obj\Debug\TempPE

     目录          0  2012-01-26 13:47  FalshWindows\bin\Debug

     目录          0  2012-01-26 13:47  FalshWindows\obj\Debug

     目录          0  2012-01-26 13:47  FalshWindows\bin

     目录          0  2012-01-26 13:47  FalshWindows\obj

     目录          0  2011-12-23 08:09  FalshWindows\Properties

     目录          0  2011-12-23 08:09  FalshWindows\Resources

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

评论

共有 条评论