My TableLayoutPanel has cells that are 32 pixels square. Each cell contains a PictureBox that has a 32 pixel square image in it. Unfortunately at runtime there is a white border around every image that I can't get rid of.
Any clues what to do, please?
![Name: PiecesWithBorder.PNG
Views: 2
Size: 8.4 KB]()
Any clues what to do, please?
Code:
Dim i As Integer = 1
For rowNo As Integer = 0 To tlp_Chessboard.RowCount - 1
For columnNo As Integer = 0 To tlp_Chessboard.ColumnCount - 1
Sq(i) = New PictureBox
Sq(i).BorderStyle = BorderStyle.None
Sq(i).Image = My.Resources.bkw
tlp_Chessboard.Controls.Add(Sq(i), columnNo, rowNo)
i = i + 1
Next
Next