Updating Property Inspector

  • Thread starter Thread starter John
  • Start date Start date
J

John

Is there a way to update the Visual Studio property inspector when you
change properties behind the scenes?

Example: I have an enum that defines color schemes, when changed it
changes two properties "StartColor" and "EndColor" but the new values
are not reflected in the VS.NET property inspector until I click on them.

Any info is appreciated!

John Parrish
 
In this case you'll have to create a custom designer for your control that
triggers an update of the relavent properties whenever the property is
changed.

Look at the RaiseComponentChanging and RaiseComponentChanged methods in the
ControlDesigner.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Back
Top