Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27196

VS 2012 Unwanted border around cells in TableLayoutPanel

$
0
0
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

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

Attached Images
 

Viewing all articles
Browse latest Browse all 27196

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>