Re: Progress bar, and Visual Basic6

  • From: "Matthew2007" <matthew2007@xxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Sun, 4 May 2008 11:44:45 -0700

how about sharing the solution with the rest of the class? (smile)

Matthew
----- Original Message ----- From: "Darko Milošević" <darko.pogacic@xxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Sunday, May 04, 2008 11:30 AM
Subject: Re: Progress bar, and Visual Basic6


Thank you Bob.
I have found the code example on the internet, and now it works.
Darko.

----- Original Message ----- From: "Bob J." <rjustice004@xxxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Sunday, May 04, 2008 9:43 PM
Subject: Re: Progress bar, and Visual Basic6


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


__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind


__________ NOD32 3072 (20080503) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com



__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: