Advertisement
5_2007-2008 Custom Controls/ Forms/ Menus #178448

Simple Progressbar

I've seen a lot of progress bar code on this site, but I haven't seen any that show you how to set up the caption so it will change color as the bar moves over it. This is a very basic example of how to do that. The trick is setting the DrawMode to "Not Xor Pen"; you can also use "Merge Pen Not". This example is only to get you started. You'll have to play around with the BackColor, ForeColor and RGB color used for the bar to get the color effect you want. Have fun.

AI

AIサマリー: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

ソースコード
original-source
Upload
オリジナルのコメント (3)
Wayback Machineから復元