PDA

Click to See Complete Forum and Search --> : Changes do not get Updated


Olly
Nov 1st, 2002, 09:43 AM
Help!
I have tried to do the following:

access progressBar from a class:

in the class:

FIV.Form1 updbar = new FIV.Form1();
updbar.UpdateProgressBar(newValue);


In the Form1 class:

UpdateProgressBar(int i)
{
progressBar1.Value = i;
}

It will not give me an error, but it will not update the progressbar either! Means it will stay with it's old values. I don't understand this, because in the debug window I can see how the values for the progressBar1 change.

And: I've tried to do it with a reference to the object etc etc, nothing will work.

Scott Penner
Nov 4th, 2002, 01:11 PM
So, the visual representation of the value does not change, but the value itself changes?

You might want to add a This.Invalidate to the set property procedure. This should update the visual part...