OK.
Well, here's what I would like to do -- maybe there's a different way.
I have two properties for a custom control that need to affect each other,
so I need to be able to trap when each property change. So if my Value
property changes, I need to do something to my Text property and vice versa.
Right now, I don't see the change in the grid until I've clicked on the other
property -- e.g., if the Value property changes, the Text property doesn't
change in the property pane, but when I click on the Text property, it
changes (without me doing anything else).
Any ideas? (BTW, I'm cross-posting this to
microsoft.public.dotnet.framework.windowsforms.)
Thanks for any help,
Steve
Apply
[RefreshProperties(RefreshProperties.All)]
to both your properties
---------
- G Himangi, Sky Software http://www.ssware.com
Shell MegaPack : GUI Controls For Drop-In Windows Explorer like Shell
Browsing Functionality For Your App (.Net & ActiveX Editions).
EZNamespaceExtensions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensions.Net : Develop all shell extensions,explorer bars and BHOs
rapidly in .Net
---------
> OK.
>
[quoted text clipped - 43 lines]
>> > Thanks for any help,
>> > Steve
jokiz - 12 May 2007 03:33 GMT
first of all, you can interact with visual studio through EnvDTE. but
that's not the solution for your problem, all you have to do is
change the related property from the setter of the other not using
their setter but through TypeDescriptor which automatically notifies
the designer so it gets reflected in the property grid at real time.
there have been a number of queries like this in this newsgroup, you
can try searching for the syntax, something like
TypeDescriptor.GetProperties(myComponent)
["PropertyName"].SetValue(myComponnet, value)
> Apply
>
[quoted text clipped - 58 lines]
> >> > Thanks for any help,
> >> > Steve
jokiz - 12 May 2007 04:17 GMT
first of all, you can interact with visual studio through EnvDTE. but
that's not the solution for your problem, all you have to do is
change the related property from the setter of the other not using
their setter but through TypeDescriptor which automatically notifies
the designer so it gets reflected in the property grid at real time.
there have been a number of queries like this in this newsgroup, you
can try searching for the syntax, something like
TypeDescriptor.GetProperties(myComponent)
["PropertyName"].SetValue(myComponnet, value)
> Apply
>
[quoted text clipped - 58 lines]
> >> > Thanks for any help,
> >> > Steve
mobilemobile - 01 Jun 2007 03:46 GMT
Thanks for the info -- that worked!
Steve
> Apply
>
[quoted text clipped - 58 lines]
> >> > Thanks for any help,
> >> > Steve