title: VB.net Borderless Form Maximize over Taskbar
body: <p>When I maximize my borderless form, the form covers the entire screen including the taskbar, which I don't want it to do. I'm finding it very difficult to find a solution to my problem on the net, all I've come up with is the below code, which displays the taskbar for a short time, but then disappears and the form still takes up the entire screen.</p>
  
  <pre><code>Private Sub TableLayoutPanel1_DoubleClick(sender As Object, e As MouseEventArgs) Handles TableLayoutPanel1.DoubleClick
      If e.Location.Y &lt; 30 Then
          Me.WindowState = FormWindowState.Maximized
          Me.ControlBox = True
      End If
  End Sub
  </code></pre>
  
  <p>I'm starting to think the only way to solve my problem is to find the screen size height minus the taskbar height to get the form height, but I'm hoping there might be a simpler answer.</p>