有没有办法在组合框中制作进度条 [英] Is there any way to make a progressbar in the combobox

查看:52
本文介绍了有没有办法在组合框中制作进度条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

粗略地说,显示下载不在进度条中,而是在组合框中?



我尝试过:



我们被建议订阅Draw事件并在组合框控件的后台绘制一个进度条,但我不知道如何。

Roughly speaking, display the download not in the progressbar, but in the combobox?

What I have tried:

We were advised to subscribe to the Draw event and draw a progressbar in the background of the combobox control, but I don’t know how.

推荐答案

你正在混合在CB中和在后台。



在CB中没有任何意义,除非它只是低于或高于。 在顶部会停止与CB的互动。



对于背景,将(较小的)CB放在表格上的(较宽的)进度条上。 />


使组合框半透明(如果需要)。
You're mixing "in the CB" and "in the background".

"In the CB" makes no sense unless it's just below or above. "ON top" would stop interaction with the CB.

For the Background, put the (smaller) CB OVER the (wider) progress bar on the form.

Make the combo box semi-transparent (if you want).


也许你可以使用它: WinForms的动画制作工具 [ ^ ]

它将允许动画几乎任何Winforms控件。
Maybe you can use this: Animator for WinForms[^]
It will allow to animate almost any Winforms control.


这篇关于有没有办法在组合框中制作进度条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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