I NEED TO KNOW HOW TO MAKE A PICTURE BOX "TRANSLUCENT" NOT "TRANSPARENT"
sorry for the caps
i want it so that u can see the textbox behind it and see all the changes in the textbox
if anybody can help DO IT
Printable View
I NEED TO KNOW HOW TO MAKE A PICTURE BOX "TRANSLUCENT" NOT "TRANSPARENT"
sorry for the caps
i want it so that u can see the textbox behind it and see all the changes in the textbox
if anybody can help DO IT
If you know how to make the picturebox transparent - your'e half way there, as in translucent images only some of the pixels are visible whilst others are transparent.
Image a chequerboard if you will where all the squares of one colour are transparent and others are not.
DocZaf
{;->
There's a transparent picturebox control on my homepage ;)
Then you can use the PSet method for every other Pixel to make it look Translucent.
You cannot pset on a textbox
I know that. But you can PSet on a PictureBox, which is what I said.
What does the PSet method do ? And how does it work ?
Pset plots a single pixel in a specified color, and i won't make your picturebox transculent, you need to cut regions and ****, download my ocx control and use the mask color to set the parts you want to be transculent...
Here is an example of how to use the PSet method.
Code:Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
'Set a Blue Pixel at the X and Y Coordinates
Me.PSet (X, Y), vbBlue
End Sub
If you still bother to use pset i would suggest to use setpixelv api method instead meg, since psetting will slow down a transculent procedure to the state of uselessness
Code:Declare Function SetPixelV Lib "gdi32" Alias "SetPixelV" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal crColor As Long) As Long
'To use
SetPixelV Me.hdc,X,Y,vbBlue