Board index » Visual Studio » Transparency

Transparency

Visual Studio295
Transparent textboxes? Is it possible? When I try to set the Alpha of the

colour it tells me that the control does not support transparency. If not,

is there any other way I can do this?


-
 

Re:Transparency

Quote
Transparent textboxes? Is it possible? When I try to set the Alpha of

the colour it tells me that the control does not support transparency. If

not, is there any other way I can do this?



Create a new form with a label called Label1. Copy and paste this code into

your project:



Private Sub Form1_Load(ByVal sender As System.Object, ByVal _

e As System.EventArgs) Handles MyBase.Load

Dim Img As Bitmap = New Bitmap(1, 1)

BackgroundImage = Img

TransparencyKey = Img.GetPixel(0, 0)

Label1.BackColor = Color.Transparent

End Sub



Matthew





-

Re:Transparency

OK, this is great for labels, but I need to use textboxes as the end user

will be entering text into these fields!



Is this possible?



Thanks





"Matthew" <turn.deletethis@alltel.net>wrote in message

Quote
>Transparent textboxes? Is it possible? When I try to set the Alpha of

>the colour it tells me that the control does not support transparency.

>If

>not, is there any other way I can do this?



Create a new form with a label called Label1. Copy and paste this code

into

your project:



Private Sub Form1_Load(ByVal sender As System.Object, ByVal _

e As System.EventArgs) Handles MyBase.Load

Dim Img As Bitmap = New Bitmap(1, 1)

BackgroundImage = Img

TransparencyKey = Img.GetPixel(0, 0)

Label1.BackColor = Color.Transparent

End Sub



Matthew







-