how to make a picturebox transparent (not the picture in it ,to the controls behind)
how to make a picture box transparent as it shows the controls behind it and the controls in it..
ex: i have to command buttonsm infront of them a picture box, in that picture box another command button, i want the picture to boe transparent as it shows only the command button in it and also the two behind it..
thanks..
Re: how to make a picturebox transparent (not the picture in it ,to the controls behind)
Yes there is a way i found this transparent picturebox control a while ago and have been using to for years. It is very customizable code but you can add more functions to it if you need too. It is a User Control. See attached.
Re: how to make a picturebox transparent (not the picture in it ,to the controls behind)
when you load a picture do this:
VB Code:
set TransPicBox1.picture = loadpicture("C:\mypic.bmp")
Remember to set the maskcolor to the transparent part. Like if your image has a white backround and you want that transparent make the maskcolor white.