|
-
Nov 1st, 2002, 10:43 AM
#1
Thread Starter
Registered User
Changes do not get Updated
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.
-
Nov 4th, 2002, 02:11 PM
#2
Hyperactive Member
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...
-scott
he he he
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|