Darko, I believe that the progress shown on the progress bar is a percentage calculated by comparing the Progress.value to the Progress.max. With nothing assigned to Progress.max the percentage cannot be calculated. Without having seen any more of your code, I can only suggest what you might try. 1. Declare the variable I to be of type integer. 2. Just before your I loop, insert the following two lines of code... Progress.min = 0 Progress.max = Len(text1.text) That way, for example, if Len(text1.text) = 100; when I = 50 inside your loop, the progress bar should show 50% complete, etc. hth Bob ----- Original Message ----- From: "Darko Milošević" <darko.pogacic@xxxxxxxxx> To: <programmingblind@xxxxxxxxxxxxx> Sent: Sunday, May 04, 2008 7:58 AM Subject: Re: Progress bar, and Visual Basic6 I have not asigned max, and min values. i is asigned as variant, but if I is greater then 100, Program gives the error that property value is invalid. If i is less then 100, progress bar appears correct. How to asign min, and max values? ----- Original Message ----- From: "Bob J." <rjustice004@xxxxxxxxxx> To: <programmingblind@xxxxxxxxxxxxx> Sent: Sunday, May 04, 2008 6:45 PM Subject: Re: Progress bar, and Visual Basic6 > Darko, > > Have you assigned values to Progress.max and Progress.min? How is your > variable I declared? > > Bob > > > ----- Original Message ----- > From: "Darko Milošević" <darko.pogacic@xxxxxxxxx> > To: <programmingblind@xxxxxxxxxxxxx> > Sent: Sunday, May 04, 2008 5:48 AM > Subject: Progress bar, and Visual Basic6 > > > Hello. > I have troubles to activate the progress bar control in VB6. > When I place the control of the form, I would like progress when my > program > doing something, such as conversion from Cyrillic to Latin characters. > I have I loop, shown below. > For I = 1 To Len(text1.text) > Character = AscW (Mid$(text1.text, I, 1)) > And now is problem. > Which value I need to give as Value of Progress bar value property, if I > would like to have a progress shown during the conversion process, until > loop finishes. > I have control named Progress, and cod below is: > Progress.Value = I > Progress.Visible = True > If Character = 1072 Then > '1072 is Ascii symbol for Cyrillic letter A > text2.text = text2.text & "a" > End If > Next I > If I put I as property value for the Progress control, My program breaks, > and needs debuggingk, because I is unexpected property value, and value > needs to be as single. > I hope that anyone understood me, and I am expecting your help. > The best egards from Darko. > > __________ > View the list's information and change your settings at > //www.freelists.org/list/programmingblind > __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind