[C#] 纯文本查看 复制代码
using System;
using System.Windows.Forms;
using CCWin;
using updater.MainLib;
namespace updater
{
// public partial class Box : Form // 这行代码不会报错
public partial class Box : CCSkinMain
{
public Box()
{
InitializeComponent();
}
private void Box_Load(object sender, EventArgs e)
{
frmStartUp frmStartUp = new frmStartUp();
frmStartUp.MdiParent = this;
frmStartUp.Show();
frmStartUp.WindowState = FormWindowState.Maximized; // 如果注释掉这行,错误消失
//Animate.Window(this.Handle, 100, Animate.AW_SLIDE | Animate.AW_VER_POSITIVE); // 滑动显示窗体
}
}
}