问一个父子窗体的问题。 我给普通窗体添加一些渐显的特效。但是把他设置为子窗体的时候特效就没有了。求解。。该如何做。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 #region 渐变 [System.Runtime.InteropServices.DllImport("user32")] private static extern bool AnimateWindow(IntPtr hwnd, int dwTime, int dwFlags); private const int AW_HIDE = 0x10000; private const int AW_SLIDE = 0x40000; private const int AW_BLEND = 0x80000;//透明渐变显示 private void FrmCote_Load(object sender, EventArgs e) { AnimateWindow(Handle, 1000, AW_BLEND); } private void FrmCote_FormClosing(object sender, FormClosingEventArgs e) { AnimateWindow(this.Handle, 1000, AW_SLIDE | AW_HIDE | AW_BLEND); } private void btnClose_Click(object sender, EventArgs e) { this.Close(); } #endregion这是一个窗体里的效果。。父窗体里用FrmcCote f = new FrmcCote();f.MdiParent = this; f.Show();来把那个窗体添加为父窗体的子窗体的话就没效果了 Closing 的时候 加一句 this.MdiParent = null; 可以得到你要的效果 SHow的时候,FrmcCote f = new FrmcCote(); f.Show();f.MdiParent = this; //后写效果不是很好,要调整调整其它效果 private void FrmCote_FormClosing(object sender, FormClosingEventArgs e) { this.MdiParent = null; AnimateWindow(this.Handle, 1000, AW_SLIDE | AW_HIDE | AW_BLEND); }总之MDI里面用特效比较麻烦 关于WCF的问题高分解决 有点疯了DataGridView绑定combox的问题! C#使用多态出现keyNotFoundException的错误怎么解决 有关VS2005的使用的简单问题 有关c#中 color.FromArgb 如何取到sqlserver的表的列信息?使用ado.net 帮忙看看这个简单的问题怎么解决。小弟先行谢过! (急求)在程序中生成word文档的问题 hello,world! ????哪有预览控件下载? C# 能否应用JS脚本到程序中? 求正则表达式解决sql语句:Case的完美转换
[System.Runtime.InteropServices.DllImport("user32")]
private static extern bool AnimateWindow(IntPtr hwnd, int dwTime, int dwFlags);
private const int AW_HIDE = 0x10000;
private const int AW_SLIDE = 0x40000;
private const int AW_BLEND = 0x80000;//透明渐变显示 private void FrmCote_Load(object sender, EventArgs e)
{
AnimateWindow(Handle, 1000, AW_BLEND);
}
private void FrmCote_FormClosing(object sender, FormClosingEventArgs e)
{
AnimateWindow(this.Handle, 1000, AW_SLIDE | AW_HIDE | AW_BLEND);
}
private void btnClose_Click(object sender, EventArgs e)
{
this.Close();
}
#endregion这是一个窗体里的效果。。
父窗体里用
FrmcCote f = new FrmcCote();
f.MdiParent = this;
f.Show();
来把那个窗体添加为父窗体的子窗体的话就没效果了
f.MdiParent = this; //后写效果不是很好,要调整调整其它效果
{
this.MdiParent = null;
AnimateWindow(this.Handle, 1000, AW_SLIDE | AW_HIDE | AW_BLEND);
}总之MDI里面用特效比较麻烦