471,356 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,356 software developers and data experts.

how to add progress bar to richtextbox

Hi all,
I have been trying to add a progress bar to the rich text box like it is
done msn messenger. The sample code for that

prgBar1=new ProgressBar();
prgBar1.Location=CalculateLocationOfControl();
prgBar1.Size=new Size(80,20);
richtextBox1.Controls.Add(prgBar1);

The idea is add the the progress bar after the latest text is added at
runtime.
CalculateLocationOfControl function calculates the location for the control
to be placed.
It works fine as long as there is no scroll in the rich text box.But the
problem is that If there is a scroll in the text box the progress bar is not
visible.

Am i doing the right way?
or is there any other way to do this?

Thanking in advance,
Ajay

Jul 21 '05 #1
0 979

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by nouno | last post: by
3 posts views Thread by kangoo | last post: by
12 posts views Thread by M O J O | last post: by
9 posts views Thread by James Wong | last post: by
3 posts views Thread by michael sorens | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.