DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Hybrid View

  1. #1
    Michael Welch Guest

    Forcing Property Window to Update

    I created my own Guage control by inheriting from
    System.Windows.Forms.Control as a learning excercise.

    I created Value, Minimum and Maximum properties and have their behavior
    mimic the behavior of the properties of the same name in the ProgressBar.

    That is if you use the property window to change the minimum value, and you
    change it to a number that is larger than the maximum value, then both the
    maximum and the value property are changed as well and the change is
    immediately visible in the property window. My code actually changes the
    value correctly, however the property window does not reflect that I have
    changed the maximum property or the value property until I actually click on
    one of them.

    With UserControls in VB6 I know you had to call the PropertyChanged method
    to notify the environment that you changed a property.

    Anyone know how I do this in .NET?


  2. #2
    Michael Welch Guest

    Re: Forcing Property Window to Update

    > Anyone know how I do this in .NET?

    I have found my answer. For others that care you use the
    RefeshPropertiesAttribute on any property that causes other properties to


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

By using this site, you agree to the Privacy Policy