2.FORM属性中的FormBorderStyle属性设置为none
  然后在重画标题栏

解决方案 »

  1.   

    1.form的属性里有一项是设置这个的,你找一下,我已经卸掉了VS.net,所以具体的不清楚了
      

  2.   

    Form.ControlBox set as false.
      

  3.   

    也可以使用api,先添加引用
    using System.Runtime.InteropServices;
    //使窗体的关闭按纽变灰
    int lSysMenu;
    const int  MF_BYPOSITION = 1024;
    lSysMenu = WinApi.GetSystemMenu(this.Handle.ToInt32(), 0);
    WinApi.RemoveMenu(lSysMenu, 6, MF_BYPOSITION);类:
    public class WinApi
    {
    [DllImport("User32.dll")]
    public static extern int GetSystemMenu(int hWnd, int bRevert);
    [DllImport("User32.dll")]
    public static extern int RemoveMenu(int hMenu, int nPosition, int wFlags);
    }