D' Eradicated
Member
- Joined
- Aug 25, 2014
- Messages
- 5
- Programming Experience
- 1-3
EDIT: Okay so, my code changed the position of the PictureBox. Is it because of changing it's parent?
I'm using Visual Studio 2013. I'm creating a board game using PictureBoxes where I set the Image property to the tiles I want. The problem is that the position is different from the Design interface to the compiled program. Any reason why this is happening?
Design
Compiled
VB.NET:
Sub setGridTransparency() Dim I As Integer, J As Integer
For I = 0 To 7
For J = 0 To 7
picGrid(I, J).Parent = picBoard
picGrid(I, J).BackColor = Color.Transparent
Next
Next
End Sub
I'm using Visual Studio 2013. I'm creating a board game using PictureBoxes where I set the Image property to the tiles I want. The problem is that the position is different from the Design interface to the compiled program. Any reason why this is happening?
Design
Compiled
Last edited: