Progressive colouring of textbox

A

Arnie

hi i have several textboxes that have a percentage number in them can i
colour the textbox progressively from red to green or light green to dark
green i would like not to change the whole of the textbox each percentage
change but as a progress bar if that makes sense
 
T

TonyT

Hi Arnie,

Changing the total colour of the field can be done using
(depending on number of 'progress' colours) an if/then or Select Case
Statement then;
Me.myControl.BackColor = (enter colour code here)
depending on percentage value.

To do as you request, ie a solid colour status bar effect, you will have to
make the data textbox backStyle transparent, and then use coding to resize
and postion another textbox behind in the colour of your choosing (or various
as the percentage increases)

hope this helps,

TonyT..
 
Top