1 Attachment(s)
Semi Transparent Screen ( Picture Control) Visual Basic
Hi All,
Please help me out in to achive the semi transparent effect for picture box.
Find the attached screen shots which is wat the exact requirement.
Images should look like disabled i.e, there should be some layer (blueish) on the whole
Assign Stamp Art part as shown in Snap1.bmp.
This is very urgent.....
SVH
Re: Semi Transparent Screen ( Picture Control) Visual Basic
Re: Semi Transparent Screen ( Picture Control) Visual Basic
I have a button behind the picture box, is it possible that the picture box can be semi transparent so I can see the button?
Re: Semi Transparent Screen ( Picture Control) Visual Basic
Unfortunately, child windows on a form cannot be made semitransparent. With Win2K and above entire windows can be, but not individual child controls.
One workaround and it is not a great workaround is to use a secondary form. On that borderless form is a picturebox control. You can make the entire form, including the picturebox semitransparent, and then position that form over the main form, and finally show it as owned (i.e., otherForm.Show , Me). This will give you exactly what you are asking for visually, but has major disadvantages. Keeping the two forms in sync when one is moved is difficult without subclassing and can be choppy. Clicking on the semitransparent form/picturebox makes the main form display as not having focus, and other issues may apply too.
Note: If the picturebox is not to be clicked, you can apply the WS_EX_TRANSPARENT style to the semitransparent form and it wil not be clickable and all clicks will be sent to the window underneath it.
Edited: Maybe this isn't needed just to show something as "grayish/bluish". Can you describe in more detail what is to be displayed and what controls you are using? There may be other, simpler, options.