我在用C#.net 做程序时,去掉标题栏以后
也就是用了这条代码 this.FormBorderStyle=FormBorderStyle.None;
任务栏的图标没有了,而且系统菜单也不起做用,这是怎么回事啊。我是新手,请哪位好心人帮帮忙啊。为这事我都郁闷好多天了。
也就是用了这条代码 this.FormBorderStyle=FormBorderStyle.None;
任务栏的图标没有了,而且系统菜单也不起做用,这是怎么回事啊。我是新手,请哪位好心人帮帮忙啊。为这事我都郁闷好多天了。
用ToolBar控件来模拟个的主菜单。(呵呵!)
我也不知道这个能不能帮上你,咱们同共研究吧
int heightBiaoTi=pointShiJie.Y-this.Top;
int widthBian=pointShiJie.X-this.Left;
Rectangle tempRec=new Rectangle(0+widthBian,heightBiaoTi,this.Width-widthBian*2,this.Height-heightBiaoTi-widthBian);
Region tempReg=new Region(tempRec);
this.Region=tempReg;