SupportsTransparentBackColor

  • Thread starter Thread starter Tony
  • Start date Start date
T

Tony

I have a smooth progress bar and, in time honoured fashion, wish to display
the progression percentage in the middle of the bar.
I naturally wish to have the text transparent but am struggling to
incorporate this enum.

I have set the flag to true for my control, but cannot then load it to a
form.

Any suggestions?

Tony
 
I'm not sure exactly what your asking here. Are you asking how to
overlay some text into the progress bar? Are you saying your
progressbar won't load on a form with that attribute? A bit more info
and I'll try and help ya.


Allen Anderson
http://www.glacialcomponents.com
 
I have a smooth progress bar and, in time honoured fashion, wish to
display the progression percentage in the middle of the bar.
I naturally wish to have the text transparent but am struggling to
incorporate this enum.

If you already have the smooth progress bar, you can just
MeasureString/DrawString and it will only draw the string foreground,
allowing you to see thru to the progress bar.

-mbray
 
Thanks Michael.......

I have used the DrawString and it nearly does all that I wish. I still have
a problem though and it is........

Because I am trying to use the string over the bar to show the percentage
value of the bar the numbers are continually overwriting each other. I
cannot seem to find a way to remove the previous string so it does not get
overwritten and merged into a blob of colour.
Do you have any further suggestions that may help me with this please.

Thanks

Tony
 
Because I am trying to use the string over the bar to show the
percentage value of the bar the numbers are continually overwriting
each other. I cannot seem to find a way to remove the previous string
so it does not get overwritten and merged into a blob of colour.
Do you have any further suggestions that may help me with this please.

I have a control which does quite similar... The only thing I can think of
is to invalidate the control so that it redraws - then you draw your text
over top of it.

-mbray
 
Back
Top