RT

解决方案 »

  1.   

      [DllImport("User32.dll", CharSet = CharSet.Auto)]
            public static extern int SetWindowText(IntPtr hWnd, string text);SetWindowText(窗体句柄,"");
      

  2.   

    this.FormBorderStyle = FormBorderStyle.None;
      

  3.   

            [DllImport("User32.dll", CharSet = CharSet.Auto)]
            public static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);SetWindowLong(this.Handle, -16, 369164288);这样?
      

  4.   

    um/ui/scripts/csdn/Plugin/001/face/6.gif][/img]
      

  5.   


    我要用API去处理,因为是在运行时去除标题栏
      

  6.   

    谢谢大家,问题已解决,就是zgke说的那样!
      

  7.   

    ===================================================
    引用 5 楼 zgke 的回复:        [DllImport("User32.dll", CharSet = CharSet.Auto)]
            public static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);
    SetWindowLong(this.Handle, -16, 369164288); ==================================================学习了,但是有个问题:如果加载的子窗体要是内部有个弹出对话框,在执行API,标题会默认先出现,全屏后会消失