代码改变世界

再说cf下的非全屏窗体

2008-06-25 16:46  cppguy  阅读(1700)  评论(3编辑  收藏  举报

之前写过一篇是通过底层调用来创建移动的非全屏窗体http://www.cnblogs.com/abob/archive/2008/01/11/1035285.html,如果不需要移动的话,cf是可以实现的:

Screen001

几个关键性的属性设置

            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
            this.ClientSize = new System.Drawing.Size(235, 152);
            this.ControlBox = false;
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.Location = new System.Drawing.Point(3, 80);
            this.MinimizeBox = false;