文件名称:C#窗体的动画效果窗体的动画效果
文件大小:28KB
文件格式:RAR
更新时间:2012-11-07 04:28:52
窗体的动画效果
static void Main() { Application.Run(new Form1()); } [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; private System.Windows.Forms.MainMenu mainMenu1; private System.Windows.Forms.MenuItem menuItem1; private System.Windows.Forms.MenuItem menuItem2; const int AW_BLEND = 0x80000; private void Form1_Load(object sender, System.EventArgs e) { AnimateWindow(this.Handle,1000, AW_CENTER | AW_ACTIVATE); } private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e) { AnimateWindow(this.Handle, 3000, AW_SLIDE | AW_HIDE | AW_VER_NEGATIVE); }
【文件预览】:
Example022-窗体的动画效果
----Form1.cs(3KB)
----bin()
--------Debug()
----Example022-窗体的动画效果.sln.old(946B)
----obj()
--------Debug()
----Example022-窗体的动画效果.sln(935B)
----Example022-窗体的动画效果.suo(8KB)
----Example022-窗体的动画效果.csproj.user(2KB)
----Thumbs.db(5KB)
----App.ico(1KB)
----Form1.resx(8KB)
----Example022-窗体的动画效果.csproj(5KB)
----AssemblyInfo.cs(2KB)