Home All Groups Group Topic Archive Search About

How do I get a gradualy changing colors?

Author
7 Apr 2006 10:54 PM
Vinay
Hi All:

I'd like to fill a set of controls with colors (by probably setting
control.backcolor) that are changing gradually - e.g. start from dark green
and endup with lightgreen.

How can I do this? I suppose I will need to use the Hex values for the
colors?

Any help will be much appreciated!

TIA

Vinay

Author
8 Apr 2006 12:52 AM
iwdu15
hi, try taking a look at the Drawing2D.LinearGradientBrush, that should be
what your looking for
--
-iwdu15
Author
10 Apr 2006 6:20 PM
Vinay
Thank for the pointer - will look at this and the samples Cor suggested.


Show quoteHide quote
"iwdu15" <jmmgoalsteratyahoodotcom> wrote in message
news:5A6606C5-8053-4917-931D-BDC82E065621@microsoft.com...
> hi, try taking a look at the Drawing2D.LinearGradientBrush, that should be
> what your looking for
> --
> -iwdu15
Author
8 Apr 2006 7:28 AM
Cor Ligthert [MVP]
Vinay,

I thought that in the previous 101 samples are some GDI+ samples for that.

http://www.microsoft.com/downloads/details.aspx?FamilyID=87951cb9-5aeb-4f46-9bf0-2b3e3664be77&displaylang=en

I hope this helps,

Cor


Show quoteHide quote
"Vinay" <vin736removet***@hotmail.remove.com> schreef in bericht
news:%23MpdmYpWGHA.3760@TK2MSFTNGP02.phx.gbl...
> Hi All:
>
> I'd like to fill a set of controls with colors (by probably setting
> control.backcolor) that are changing gradually - e.g. start from dark
> green and endup with lightgreen.
>
> How can I do this? I suppose I will need to use the Hex values for the
> colors?
>
> Any help will be much appreciated!
>
> TIA
>
> Vinay
>
>