Progressive colouring of textbox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top