Progress bar.

hi,

I want progressbar in my application.

i used msdn.microsoft.com/…/aa841990.aspx this example. but in this example setTotal method parameter is given static. in my case i do not know total count of records. so how can i set parameter of setTable methd dynamically.

You can set Total = 0. The dialog will display, although it obviously can’t show any progress bar then.

I didn’t get the sentence about “setTable”.

Thanx for reply. It was setTotal not setTable my mistake. setting 0 will not help me because i want progress bar as well as remaining time.

If you process 100 items and you don’t know the total number, how do you know whether 100 represents 1%, 50% or 100%? The same is true for remaining time. It simply can’t be done.

I have Another question I want to set focus on my progressbar is it possible. Some times it minimize directly it means it is not visible on main window.

there is a tutorial on progress bar in the forms…