Click here to Skip to main content
15,885,767 members
Articles / Programming Languages / Visual Basic
Alternative
Tip/Trick

Transparent Label in VB

Rate me:
Please Sign up or sign in to vote.
3.38/5 (10 votes)
10 Jun 2010CPOL 36.5K   4   9
Label1.Paren...
VB
Label1.Parent = ControlName '(PictureBox1 if it is placed on a picturebox)
Label1.BackColor=Transparent
in VB.NET would do the trick.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Student
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralMy vote of 1 Pin
maq26-Jul-12 8:46
maq26-Jul-12 8:46 
Generalyeah Pin
Anshul R28-Jun-10 15:05
Anshul R28-Jun-10 15:05 
GeneralDon't know - have you tried it? Pin
Johnny J.28-Jun-10 4:25
professionalJohnny J.28-Jun-10 4:25 
GeneralWhat about Label1.Parent = Control Label1.Background = Tran... Pin
Anshul R10-Jun-10 19:13
Anshul R10-Jun-10 19:13 
GeneralReason for my vote of 2 Not a 100% good solution, but nevert... Pin
Johnny J.10-Jun-10 1:41
professionalJohnny J.10-Jun-10 1:41 
GeneralOkay.. Pin
Anshul R10-Jun-10 1:35
Anshul R10-Jun-10 1:35 
GeneralIf your label is placed on top of a Picturebox, what you see... Pin
Johnny J.10-Jun-10 1:32
professionalJohnny J.10-Jun-10 1:32 
GeneralLike? Pin
Anshul R10-Jun-10 1:26
Anshul R10-Jun-10 1:26 
GeneralNot in all cases Pin
Johnny J.10-Jun-10 1:24
professionalJohnny J.10-Jun-10 1:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.