Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / October 2004

Tip: Looking for answers? Try searching our database.

How to show a text showing the progress in percentage on a Progres

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kajol - 28 Sep 2004 13:53 GMT
Hi everyone
I want to show the progress in percentage over a progress bar, like it is
used in many of the installation programs, like
if the background color of the progress bar is white and the text is showing
"0%" then text is in blue color
When the progress is "100%" the background color of the progress bar is
blue, so I want the text showing "100%" should come with white color

and when the progress is say "50%" then the background color of the progress
bar will be half blue and half white, in this case I want the text showing
"50%" should come as "5" in white color and "0%" as blue color, as if the
text is showing the invert color of the background
Is it possible?
Hermit Dave - 28 Sep 2004 14:14 GMT
i am not sure that the default progress bar component would suffice the
requirement.
though i dont think its too difficult writing you custom progress bar.
use a panel if it helps but you will need 2 Label controls.
At run time you will have a progress property where you set the percent
in that property implement the width of each label based on percentage.
the background of one will be blue and the other white (the labels)

Signature

Regards,

Hermit Dave
(http://hdave.blogspot.com)

> Hi everyone
> I want to show the progress in percentage over a progress bar, like it is
[quoted text clipped - 11 lines]
> text is showing the invert color of the background
> Is it possible?
kajol - 29 Sep 2004 05:23 GMT
but in that case, I do not think I will be able to control the invert text
color like, if the progress is 48% then half of the text "4" is in white and
the rest part of the text "4" is in blue color, can I do that?

> i am not sure that the default progress bar component would suffice the
> requirement.
[quoted text clipped - 19 lines]
> > text is showing the invert color of the background
> > Is it possible?
Hermit Dave - 29 Sep 2004 13:08 GMT
use a panel with background white.
You will have a label for percentage which will should be set to transparent
background. The position of this label is fixed. And it should always be on
the top.
The label with will give the visual indication of percentage should be a
child of the panel. It will have background color of blue. the width of this
will be equivalent of the percentage process.
That should be it

Signature

Regards,

Hermit Dave
(http://hdave.blogspot.com)

> but in that case, I do not think I will be able to control the invert text
> color like, if the progress is 48% then half of the text "4" is in white
[quoted text clipped - 27 lines]
>> > text is showing the invert color of the background
>> > Is it possible?
kajol - 30 Sep 2004 08:17 GMT
Let me do that
Thanks

> use a panel with background white.
> You will have a label for percentage which will should be set to transparent
[quoted text clipped - 36 lines]
> >> > text is showing the invert color of the background
> >> > Is it possible?
Hermit Dave - 04 Oct 2004 20:19 GMT
did you get anywhere with the progressbar ?

Signature

Regards,

Hermit Dave
(http://hdave.blogspot.com)

> Let me do that
> Thanks
[quoted text clipped - 39 lines]
> > >> > text is showing the invert color of the background
> > >> > Is it possible?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.