Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
多数のファイルのダウンロードを含むリストボックスがあります。現在のダウンロードに進行状況バーを追加して、ユーザーにダウンロードの進行状況を知らせたいと考えています。これを行う方法がわかりません。
オーナー描画リストボックスを使用する必要があります
通常の ListBox を使用し、DrawMode = DrawMode.OwnerDrawFixed を設定して、MeasureItem と DrawItem の 2 つのイベントを処理します。
欠点は、すべての描画を自分で処理する必要があることですが、少なくともテキストとプログレス バーは簡単に描画できます。