Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
d a
|
May 23, 2011 - 5:15 AM
|
Is it possible to change the color of the progress bar from the standard Green. Setting the forecolor and the style appears to make no difference
|
|
Technical Support
|
May 23, 2011 - 11:59 AM
|
It is impossible to automatically colorize the progress bar (e.g. save the gradient but apply a different color), but you can paint your custom foreground by handling the ProgressBar.Paint event as follows: private void progressBar1_Paint(object sender, PaintEventArgs e)
{
e.Graphics.FillRectangle(new SolidBrush(Color.Blue), progressBar1.DisplayRectangle);
}
|
|