您的位置:首页 > 编程语言 > C#

几行代码帮您实现Win7窗体的打开效果(C#)

2009-11-28 13:38 549 查看
    public partial class Form1 : Form
    {

        [System.Runtime.InteropServices.DllImport("user32")]
        private static extern bool AnimateWindow(IntPtr hwnd, int dwTime, int dwFlags);
        const int AW_CENTER = 0x0010;
        const int AW_ACTIVATE = 0x20000;

 

        public Form1()
        {
            InitializeComponent();
            AnimateWindow(this.Handle, 1000, AW_CENTER | AW_ACTIVATE);

        }

    }
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  c# class user