Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / June 2007

Tip: Looking for answers? Try searching our database.

PropertyDescriptor SetValue not called

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Seth - 10 Jun 2007 16:54 GMT
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.
Bob Powell [MVP] - 11 Jun 2007 19:44 GMT
Are you using the TypeDescriptionProvider system?

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

Signature

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

> I am attempting to create a specialized PropertyDescriptor for the
> Location property on one of my custom controls.  When I attempt to debug
[quoted text clipped - 6 lines]
>
> Thanks.
Seth - 13 Jun 2007 03:57 GMT
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.

> Are you using the TypeDescriptionProvider system?
>
[quoted text clipped - 10 lines]
>>
>> Thanks.
Seth - 19 Jun 2007 02:23 GMT
Gonna try reviving this old thread in the hopes that someone sees it and has
an idea.  Can anyone provide some insight?

> Not trying to update the property directly via the
> TypeDescriptionProvider. Just using it via the standard PropertyGrid.  My
[quoted text clipped - 18 lines]
>>>
>>> Thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.