如何在标签中设置图像并使用标签使文本变暗? [英] How to set image in a label and scorling text with label ?

查看:104
本文介绍了如何在标签中设置图像并使用标签使文本变暗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Windows窗体中的标签中设置图像和文本,而不是滚动所有它们.有人可以帮我吗? this

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

推荐答案

不要让您的问题大胆,这很烦人.您正在使用哪个版本的C#?这很重要,因此请不要全部指定.

您也不会告诉我们您使用的是什么框架,例如ASP.NET,MVC,Winforms,WPF等.没有这些,就不可能正确回答.

如果您使用的是WPF,则创建一个ScrollViewer并将图像和文本放入其中,它将滚动.如果您使用的是Winforms,则可以阅读 [
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 ).


如果您指的是控件System.Windows.Forms.Label,则它不能用于图像.这个问题没有明确表述;滚动的目的不清楚,没有描述所需的功能.

—SA
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


这篇关于如何在标签中设置图像并使用标签使文本变暗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆