Results 1 to 2 of 2

Thread: Changes do not get Updated

  1. #1

    Thread Starter
    Registered User Olly's Avatar
    Join Date
    Apr 2001
    Location
    Switzerland
    Posts
    252

    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.

  2. #2
    Hyperactive Member Scott Penner's Avatar
    Join Date
    Dec 2000
    Location
    Mountain View
    Posts
    327
    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
  •  



Click Here to Expand Forum to Full Width