一个无边框窗口的问题!! 在做form的时候直接做上去呀。将form背景置为white,在上面加一个Panel,将它的背景置为Green就行了。当然,还有很多不同的作法,你可以自己试试 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 如下是可以的,不过记住this.panel1.Location =new Point(this.Location.X +5,this.Location.Y +5);这一句和this.panel1.Width=this.Width-10;this.panel1 .Height=this.Height -10;一定要按我写的分别放在构造函数里才可以,具体为什么我也不太清楚. public Form1() { // // Windows 窗体设计器支持所必需的 // InitializeComponent(); // // TODO: 在 InitializeComponent 调用后添加任何构造函数代码 // this.panel1.Location =new Point(this.Location.X +5,this.Location.Y +5); } private void Form1_Load(object sender, System.EventArgs e) { this.panel1.Width=this.Width-10; this.panel1 .Height=this.Height -10; } 也就是说this.panel1.Location =new Point(this.Location.X +5,this.Location.Y +5);这个必须放在构造函数里.this.panel1.Width=this.Width-10;this.panel1 .Height=this.Height -10;必须放在Form1_Load()里. to tavor(龙双公子): 按你说做出来的边框, 没有立体效果呀。你看看MSN的弾出窗口的边框是立体的呀。 to:tavor(龙双公子) 谢谢了!我在顶一下! to:whgao 知道了!看来只能这样了!明天来结贴。 thread sleep 行列技术问题-续 100分 [求助]未处理的“System.Data.OleDb.OleDbException”类型的异常出现在 请教基础的问题 c#.net中用odbc连接,为何动态创建dbf文件不成功 vml生成的图片导入word 怎么导阿〉? 求救! 怎样做一个无刷新的Tabstrip和multipage? 这里谁知道CA210 treeview中的navigateurl问题! 怎样在读取的一行中,查找指定的单词 高分收集面试试题 DataGrid不能编辑和更新
public Form1()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent(); //
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
this.panel1.Location =new Point(this.Location.X +5,this.Location.Y +5);
} private void Form1_Load(object sender, System.EventArgs e)
{
this.panel1.Width=this.Width-10;
this.panel1 .Height=this.Height -10;
}
这个必须放在构造函数里.this.panel1.Width=this.Width-10;
this.panel1 .Height=this.Height -10;
必须放在Form1_Load()里.
按你说做出来的边框, 没有立体效果呀。你看看MSN的弾出窗口的边框是立体的呀。
谢谢了!我在顶一下!
知道了!
看来只能这样了!明天来结贴。