C#2005 请问MDI窗体能不能实现自定义标题栏效果 我在单窗体上已经可以实现了,首先把form的frmBorderstyle =None ,然后做一个位图,再设置需要透明的地方可以改成mdi窗体就没有办法实现透明了,就是说我想让窗体的某些地方透明就不行了请问有办法实现透明吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 设置Region属性来指定窗体的显示区域就可以了,不必也最好不用透明色来处理。比如:如下的代码设置窗体的显示形状: public frmPrintExcel() { InitializeComponent(); GraphicsPath path = new GraphicsPath(); path.AddEllipse(0, 0, this.ClientRectangle.Width, this.ClientRectangle.Height / 2); path.AddEllipse(0, this.ClientRectangle.Height/2, this.ClientRectangle.Width, this.ClientRectangle.Height / 2); this.Region = new Region(path); } 用Region倒是可以,但是很难达到用图片透明色的那种效果啊 重绘即难又麻烦,是不是mdi不能用普通窗体的处理办法? 关于HttpWebRequest的Credentials与PreAuthenticate C# 如何等待事件返回值后再继续向下执行--急 关于抽象工厂。。 JQUERY 或者JS 调用后台方法 使用linklabel控件,运行时出现异常,提示说找不到应用程序 用C#发送邮件的问题 ####公司要被合并了,我是该走还是留####### 关于64位win7上用VS开发的问题 C#界面问题。有分! 求救,水晶报表添加子报表后在项目内运行时提示Invaild field name到底要怎样解决? timer事件问题 关于网络服务端转发信息的问题
如下的代码设置窗体的显示形状: public frmPrintExcel()
{
InitializeComponent(); GraphicsPath path = new GraphicsPath();
path.AddEllipse(0, 0, this.ClientRectangle.Width, this.ClientRectangle.Height / 2);
path.AddEllipse(0, this.ClientRectangle.Height/2, this.ClientRectangle.Width, this.ClientRectangle.Height / 2);
this.Region = new Region(path);
}