Re: [vb6] Transparent PictureBox
If you just want to make the picturebox transparent, you can try the simplest way: take out the client area coordinates of the picture box, and then hide the control.
Take a screenshot from the screen or the form, set it as the back view of the picture box, and then display the control (move off the screen, or set the width and height to 0)
It would be great if there were fewer lines of code.
I saw a transparent Picturebox control before, and found that the picture displayed in high DPI was incomplete.
There is another way, if there are 2 other controls on the Picturebox, you can hollow out the other vacant places (CreateRectRgn),
This is truly transparent. If you move the Picturebox, you can see the real situation of other forms or controls below.