PropertyDescriptor SetValue not called

  • Thread starter Thread starter Seth
  • Start date Start date
S

Seth

I am attempting to create a specialized PropertyDescriptor for the Location
property on one of my custom controls. When I attempt to debug it, my
breakpoint in GetValue gets hit when I expand the Location property in the
property grid to reveal the child properties (X and Y). However, it appears
SetValue never gets called. Whether I change the value of the Location
property itself, or either of the X or Y child properties; it never hits
SetValue. Anyone have any idea why SetValue would never be called?

Thanks.
 
Are you using the TypeDescriptionProvider system?

I do this all the time and it works just fine for me.

--
--
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.
 
Not trying to update the property directly via the TypeDescriptionProvider.
Just using it via the standard PropertyGrid. My breakpoint gets hit from
the PropertyGrid for GetValue, just never SetValue.

I can certainly try the TypeDescriptionProvider and see what happens if you
think that'll provide some info.
 
Gonna try reviving this old thread in the hopes that someone sees it and has
an idea. Can anyone provide some insight?
 
Back
Top