title: MS Access 2016 - Remove the title bar from a form opened as AcDialog
body: <p>I'm trying to replicate a Windows 10 style, full-screen modal dialog with a transparent background.  I have everything working perfectly except for the title bar.  </p>
  
  <p><img src="https://i.stack.imgur.com/DyqHw.png" alt="How it looks now"></p>
  
  <p>I cannot get rid of it.  I've also disabled any other API subclassing for the window transparency. Borderstyle is set to None, I hid all the title bar controls.  The form is set to Popup and Modal</p>
  
  <p><img src="https://i.stack.imgur.com/EN3YP.png" alt="Property Sheet from the Form"></p>
  
  <p>I open it like this:</p>
  
  <pre><code>DoCmd.OpenForm "Modal_Full_Screen", acNormal, , , , acDialog
  </code></pre>
  
  <p>These are the API calls I make in the Form_Load event to try to get rid of it:</p>
  
  <pre><code>Dim lStyle As Long
  SetWindowLong Me.hwnd, GWL_EXSTYLE, GetWindowLong(Me.hwnd, GWL_EXSTYLE) And Not WS_EX_DLGMODALFRAME
  
  SetWindowPos Me.hwnd, 0, 0, 0, 0, 0, SWP_FRAMECHANGED Or SWP_NOMOVE Or SWP_NOSIZE Or SWP_NOZORDER
  lStyle = GetWindowLong(Me.hwnd, GWL_STYLE)
  lStyle = lStyle And Not (WS_BORDER Or WS_DLGFRAME Or WS_MAXIMIZEBOX Or WS_MINIMIZEBOX Or WS_THICKFRAME Or WS_CAPTION)
  Call SetWindowLong(Me.hwnd, GWL_STYLE, lStyle)
  SetWindowPos Me.hwnd, 0, 0, 0, 0, 0, SWP_FRAMECHANGED Or SWP_NOMOVE Or SWP_NOSIZE Or SWP_NOZORDER
  </code></pre>
  
  <p>I definitely want it to stop processing and wait for input.  I know the Popup window trick where you put a loop after it opens waiting for the window to close but I'm not a fan of DoEvents, just tends to crash the stack, especially on faster machines.</p>
  
  <p>If this isn't possible is there a way to disable or catch the title bar events, click and dragging it restores the window from full screen (but double clicking it does not maximize it?).</p>