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?
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL