如何在 ProgressBar 上放置文本? [英] How do I put text on ProgressBar?
问题描述
我在我的 c# 桌面应用程序中使用了 ProgressBar Control.我在一个线程中使用了它,而不是在其中声明了控件的线程.它的工作正常.现在我想知道如何在进度条控件中显示一些文本,例如启动注册"等.此外,我想将其用作 Marquee 进度条.请帮助我.
I have used ProgressBar Control in my c# desktop application.I have used it in a thread other then the thread in which control has been declared.Its working Fine. Now I am wondering how i can show some text inside progress bar control like "Initiating Registration" etc.Also I want to use it as Marquee progress bar.Please help me.
推荐答案
我会创建一个名为 InfoProgresBar 的控件,该控件为该功能提供一两个标签(主作业、当前作业)和 ProgressBar,并使用它代替那个进度条.
I wold create a control named for example InfoProgresBar, that provide this functionality with a label or two (Main Job, Current Job) and ProgressBar and use it instead of that ProgressBar.
这篇关于如何在 ProgressBar 上放置文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!