Currently I want to make a small tool for my friend. The goal is to download a character from one of his favorite computer games from an Internet source and create a viewer for whom I upload image icons, etc. From the Internet.
While this is working pretty well, however, I came up with a problem right here:

As you can see - I drew the borders of the PictureBoxes - they overlap and blocks the display of another element (the one that is partially displayed in the second rectangular box).
Both are saved as .png files.
This is the code to create them:
PictureBox picture = new PictureBox
{
Name = "pictureBox"+item.Key,
Size = new Size(pictureBoxWidth, pictureBoxHeight),
Location = new Point(pictureBoxLocationX, pictureBoxLocationY),
Visible = true,
Image = itemIcon,
BackColor = Color.Transparent,
BorderStyle = BorderStyle.FixedSingle
};
The coordinates are fine, also the image is fine. However, it is quite large, even if the icons, such as completely visible, do not even need a huge box.
:
64px
128px
, , ? - , , - - , .
Parent-, , , , .