在做form的时候直接做上去呀。将form背景置为white,在上面加一个Panel,将它的背景置为Green就行了。当然,还有很多不同的作法,你可以自己试试

解决方案 »

  1.   

    如下是可以的,不过记住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;
    }
      

  2.   

    也就是说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()里.
      

  3.   

    to tavor(龙双公子):
      按你说做出来的边框, 没有立体效果呀。你看看MSN的弾出窗口的边框是立体的呀。
      

  4.   

    to:tavor(龙双公子) 
        谢谢了!我在顶一下!
      

  5.   

    to:whgao
       知道了!
    看来只能这样了!明天来结贴。