![]() |
| ||
| progress bar problem in vb hi, i am using a progress bar in a conversion program in conversion process progress bar is showing the progress of conversion , but i am using a timer increment for increase the progress bar , but when file is big due to timer is showing the process has been completed but actually file conversion is not completed .Is at any method is there which can calculate the first file size and according to this file size process gets incerement . :confused: |
| ||
| Re: progress bar problem in vb Hi jto, If I understand correctly you are loading a file and want the progress bar to indicate how far you have actually come in the load process - correct? If so you could use the FileLen(<path>) function to get the length of the file initially. You store this in the MaxValue of the progress bar and keep a 'counter' to track how much of the file you have read so far by adding the length of the data you just read to it every time you do an input. Something like this: Dim BytesRead As LongPlease note that I have NOT tested this code. Hope this helps Happy coding Yomet |
| ||
| Re: progress bar problem in vb thank u yomet this working right , but in this progressbar.minvalue is not true command it should be progressbar.min=0 and progressbar.max=0 |
| ||
| Re: progress bar problem in vb jto, I stand (sit) corrected... :) Glad you could find the correct syntax for your controls. Happy coding Yomet |
| All times are GMT -4. The time now is 11:35 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC