Programming/c# & winform2020. 10. 23. 19:09

+

2020.11.13

컨트롤 추가를 투명하게 하려는 컨트롤에 해주어야 한다.

그리고 좌표는 부모(?) 컨트롤에 상대적으로 적용된다.

 

pictureBox7.Controls.Add(pictureBox8); << 이 부분이 핵심이고

pictureBox8.Location = Point(0,0); << 이 부분이 두번째 핵심이다.

public Form1()
{
    InitializeComponent();
    pictureBox7.Controls.Add(pictureBox8);
    pictureBox8.Location = new Point(0, 0);
    pictureBox8.BackColor = Color.Transparent;
}

 

[링크 : https://stackoverflow.com/questions/19910172/how-to-make-picturebox-transparent]

---

 

[링크 : https://stackoverflow.com/questions/36099017/how-to-make-two-transparent-layer-with-c]

[링크 : https://stackoverflow.com/questions/12138892/picturebox-with-transparent-background]

[링크 : https://stackoverflow.com/questions/4144371/a-picturebox-problem]

 

[링크 : https://social.msdn.microsoft.com/Forums/windows/en-US/ce17105b-2ded-4649-a1b6-c83db4bcde8a/picturebox-transparency?forum=winforms]

[링크 : https://stackoverflow.com/questions/5522337/c-sharp-picturebox-transparent-background-doesnt-seem-to-work]

Posted by 구차니