title: DataGridView Button Column not showing image on CellPainting
body: <p>I have a <code>DataGridView</code> with one button column. When I use the following code with image <code>unblock3.png</code> the image is displayed, but when I replace it with another image <code>check1.png</code> nothing is displayed.</p>
  
  <p>I tried resizing <code>check1.png</code> to smaller size but it still not working.</p>
  
  <p>Could you please help me to figure out what is wrong?</p>
  
  <pre><code>Private Sub ShiftsList_CellPainting(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellPaintingEventArgs) Handles ShiftsList.CellPainting
      If ShiftsList.Columns(e.ColumnIndex).Name = "ConfirmShift" AndAlso e.RowIndex &gt;= 0 Then
          e.Paint(e.CellBounds, DataGridViewPaintParts.All)
          e.Graphics.DrawImage(My.Resources.unblock3, CInt((e.CellBounds.Width / 2) - (My.Resources.unblock3.Width / 2)) + e.CellBounds.X, CInt((e.CellBounds.Height / 2) - (My.Resources.unblock3.Height / 2)) + e.CellBounds.Y)
          e.Handled = True
      End If
  End Sub
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/0GNGv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0GNGv.png" alt="ResourcesFolder"></a></p>
  
  <p><a href="https://i.stack.imgur.com/Voc3T.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Voc3T.png" alt="UnChecked"></a></p>
  
  <p><a href="https://i.stack.imgur.com/vzpJN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vzpJN.png" alt="Checked"></a></p>