PropertyDescriptor SetValue not called

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.
 
B

Bob Powell [MVP]

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.
 
S

Seth

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.
 
S

Seth

Gonna try reviving this old thread in the hopes that someone sees it and has
an idea. Can anyone provide some insight?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top