tags:

views:

91

answers:

4

Hello, I have used ProgressBar Control in my c# desktop application.I have used it in a thread other then the thread in which control has been declared.Its working Fine. Now I am wondering how i can show some text inside progress bar control like "Initiating Registration" etc.Also I want to use it as Marquee progress bar.Please help me.

+4  A: 

You will have to override the OnPaint method, call the base implementation and the paint your own text.

Barry
Thnks . I am gonna do it for sure...
Sandeep
+3  A: 

I wold create a control named for example InfoProgresBar, that provide this functionality with a label or two (Main Job, Current Job) and ProgressBar and use it instead of that ProgressBar.

Vash
Custom ProgressBar seems to be good idea,will try it out...thnks
Sandeep
+1  A: 

Alliteratively you can try placing a Label control and placing it on top of the progress bar control. Then you can set whatever the text you want to the label. I haven't done this my self. If it works it should be a simpler solution than overriding onpaint.

thekindofme
Thnks sir for your anser....
Sandeep
+1  A: 

I found an article on how to create a custon control to do this on codeproject

Thnks james .It was a good article...
Sandeep