I created a transparent form, but the text in my label has a black border
around it.
I created a new form with a label with the text color "red" and the
background color of "Transparent."
I added this code to the project:
Private Sub Form1_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
hideMe(Me)
End Sub
Public Sub hideMe(ByVal obj As Object)
Dim Img As Bitmap = New Bitmap(1, 1)
obj.BackgroundImage = Img
obj.TransparencyKey = Img.GetPixel(0, 0)
End Sub
The result looks like this:
http://www.osbornewood.com/matthew/transp.gif
Notice the black border around the text.
Is this caused by anti-aliasing? Can it be turned off?
Also, the bitmap I create is black. Can I make it the "Control" color? It
looks sort of like tan, but I am not sure how to change the bitmap color in
code.
Thanks in advance,
Matthew