473,549 Members | 3,109 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I get a gradualy changing colors?

Hi All:

I'd like to fill a set of controls with colors (by probably setting
control.backcol or) 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
Apr 7 '06 #1
3 1143
hi, try taking a look at the Drawing2D.Linea rGradientBrush, that should be
what your looking for
--
-iwdu15
Apr 8 '06 #2
Vinay,

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

http://www.microsoft.com/downloads/d...displaylang=en

I hope this helps,

Cor
"Vinay" <vi************ **@hotmail.remo ve.com> schreef in bericht
news:%2******** ********@TK2MSF TNGP02.phx.gbl. ..
Hi All:

I'd like to fill a set of controls with colors (by probably setting
control.backcol or) 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

Apr 8 '06 #3
Thank for the pointer - will look at this and the samples Cor suggested.
"iwdu15" <jmmgoalsteraty ahoodotcom> wrote in message
news:5A******** *************** ***********@mic rosoft.com...
hi, try taking a look at the Drawing2D.Linea rGradientBrush, that should be
what your looking for
--
-iwdu15

Apr 10 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1856
by: Matt Garman | last post by:
I'd like to write a class or module in python that allows me to do on-the-fly color changing in the curses module. I'm thinking about something along the lines of this: addstr(y, x, 'hello', brightyellow, blue) The module would automatically interpret the above as curses.init_pair(i, curses.COLOR_YELLOW, curses.COLOR_BLUE)
2
8873
by: Matt | last post by:
I'm having problems changing the text colors in an edit box in my program. Here's what I'm trying to do, under WM_CREATE I have the following: ClockFace = CreateWindowEx(0, "EDIT", "0.0.00", WS_CHILD|WS_VISIBLE|WS_BORDER, 125, 75, 300,
1
4092
by: Firewalker | last post by:
I am attempting to change the backColor property on the previously instantiated buttons FROM a listbox_doubleClick event. I thought it would be something like this: If Me.Controls.Item(iSeatNumber).BackColor.Equals(Color.White) Then Me.Controls.Item(iSeatNumber).BackColor.Equals(Color.CornflowerBlue) 'End If
4
9550
by: JoelW | last post by:
Let's say you're programming in VB.NET, and you have: Dim str1 As String Dim str2 As String Dim str3 As String str1 = "I am red" str2 = "I am yellow" str3 = "I am dark green"
9
4155
by: Richard | last post by:
Please hlep with a very frustrating problem. I need to be able to have a reference to my "btcopyrights" CSS class override the link colors first specified earlier in the CSS. I inherited a large site with a CSS containing as its first lines: A:link { COLOR: #006633; BACKGROUND-COLOR: transparent;
4
1099
by: Nedim | last post by:
first let me say sorry if this is in the wrong place, i'm pretty new to programming and to be honest i am a bit intimidated by these forums. now that i've got that out of the way, i was bored and decided to make a small text application in Visual Basic 2005, i have one list box, one label and ten buttons. the list box has 8 colors...
4
1793
by: Sam Carleton | last post by:
How do I change the CSS colors via JavaScript DOM? Let me explain... I am working on a Windows application (in C#) that displays some HTML. In one place the HTML is a status window. What happens is the static HTML page is embedded into the application. The static page displayed and then the C# code gets a hold of the HTML DOM from the web...
3
2932
by: Olaf Rabbachin | last post by:
Hi *, ich erzeuge zur Laufzeit in einer ASP-Tabelle Tabellenzellen. Im Großteil dieser Zellen befinden sich Checkboxes. Per JS ändere ich beim Click auf eine solche Zelle oder deren Checkbox die Farbe der Zelle. Problem: Bei einem history.back (oder Back-Button am Client) gehen die Client-seitig geänderten Zellfarben verloren. Ich suche nun...
0
2460
by: Neil Ginsberg | last post by:
Anyone know a way to change the colors used for the lines of a line graph in a Microsoft Graph Chart (Access 2003)? Some of the very-light colors they use are barely readable! TIA! Neil
0
7520
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7446
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7956
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7809
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6041
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5088
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1058
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.