Question icon before text in label

ebtihal

Member
Joined
Mar 14, 2011
Messages
21
Programming Experience
Beginner
Hi ..
How can I add an icon before a text in label ?
my label contain multiple topics in multiple line !
Thanx
 
The easiest solution is to create a UserControl containing one PictureBox and one Label.
 
Could u tell me how exactly do this plz.
cuz i use the "<marquee>" taq that display the multi line string in label.
and i try to concatenate an icon with each line.
the icon is same for all lines.

this is my code:

Dim news AsString = "<MARQUEE direction = 'up' SCROLLDELAY=500 onmouseover = 'this.stop()' onmouseout ='this.start()' >" + news1 + "</MARQUEE>"
Label1.Text = news

thanx
 
Last edited:
It seems you are talking about ASP.Net Label, so you should have posted in ASP.Net section of forums. Thread moved to Web Forms forum in ASP.NET section.
In ASP.Net you may also create a Web User Control if you want to treat a single control on page. If not placing a Image control before the label can also be done.
If you also want to scroll the image you can place the image in the content area of the marquee tag.
 

Latest posts

Back
Top