Transparency

  • Thread starter Thread starter Bob Hollness
  • Start date Start date
B

Bob Hollness

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?
 
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top