title: VB.Net: DataGridView seems as if it is piercing the form
body: <p>I'm having a graphical issue with a <strong>DataGridView</strong>.</p>
  
  <p><img src="https://i.stack.imgur.com/DyP8l.jpg" alt="Issue screenshot"></p>
  
  <p>As you can see the form looks like <strong>pierced</strong> from the <strong>DataGridView</strong> control.</p>
  
  <p>The code of the <strong>DataGridView</strong> instantiation is this:</p>
  
  <pre><code>Private Sub pageAlarms_Load(sender As Object, e As EventArgs) Handles Me.Load
      Me.Width = MainForm.Width
      Me.Height = MainForm.Height
      Me.Dock = DockStyle.Fill
  
  
      dgvActiveAlarms = New DataGridView() 
      almBasePanel.Controls.Add(dgvActiveAlarms)
  
      With dgvActiveAlarms
          .Dock = DockStyle.Fill
          .Name = "activeAlarmsTable"
          .AutoSizeRowsMode =
              DataGridViewAutoSizeRowsMode.DisplayedCellsExceptHeaders
          .ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.Single
          .CellBorderStyle = DataGridViewCellBorderStyle.Single
          .GridColor = Color.Black
          .RowHeadersVisible = False
  
          .ColumnCount = 5
  
      End With
  End Sub
  </code></pre>
  
  <p>I tried also to <strong>create the control from the designer</strong>, but with same result.</p>
  
  <p>The page which contains the <strong>almBasePanel</strong> is a <strong>user control</strong>, instantiated in the main form load.</p>
  
  <p><em>I could not find a topic with similar issue so I decided to submit this question, forgive me if I posted for a redundant argument.</em></p>
  
  <p>Thank you,
  Giuse</p>