Click here to Skip to main content
15,905,616 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
I want to set image and text in a label in windows form than scrolling all of them. Can anybody help me to do so? this
Posted
Updated 13-Feb-12 6:54am
v3
Comments
Sergey Alexandrovich Kryukov 13-Feb-12 12:01pm    
Add the tag: "Forms"
--SA
Sergey Alexandrovich Kryukov 13-Feb-12 12:04pm    
Not a question. Why scrolling? No matter, you cannot add image to label. Not clear why.

You should start the question with formulation of your purpose.
--SA

Don't make your question bold, it's just annoying. Which version of C# are you using ? This matters, so don't specify them all.

You also don't tell us what framework you're using, such as ASP.NET, MVC, Winforms, WPF, etc. Without that, it's not possible to answer properly.

If you're using WPF, create a ScrollViewer and put your image and text inside it, it will scroll. If you're using Winforms, you could perhaps read this[^] article ( or just use the control if you want ).
 
Share this answer
 
Comments
UL UL ALBAB 14-Feb-12 3:13am    
Which version are you using in C# ? This is not a question too. I have already used 2.0, 3.5 and now using 4.0.
I have to work in Winform. Actually, I am thinking as :
label.text = "This is a label";
Here, char 'T', 'h', 'i', 's' are the different Image and "is a label" is a text. How can I set "T.jpg", "h.jpg", "i.jpg" and "s.jpg" + "is a label" as string and all of them will scrolled. Is it possible ?
If you mean the control System.Windows.Forms.Label, it cannot work with images. The question is not clearly formulated; the purpose of scrolling is not clear, desired functionality is not described.

—SA
 
Share this answer
 
Comments
Christian Graus 13-Feb-12 12:05pm    
There's people on the site who will 1 vote a reply like this, as it's a comment, not an answer. I would agree, it's about all the answer you can give ( although it's clear to me he wants his image and label on a scrolling panel, which is supported ).

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900