Discussion:
PropertyGrid.PropertyValueChanged in Design-Time
(too old to reply)
mobilemobile
2007-04-30 17:24:01 UTC
Permalink
I'm not even sure if this is possible, but is there a way to access the
PropertyGrid in design-time -- how to access the grid in the property pane in
the VS IDE?

I want to use the PropertyValueChanged event in design-time -- I can use it
in runtime of course if I create a form with the PropertyGrid control on it.

Thanks for any help,
Steve
G Himangi
2007-05-02 04:51:55 UTC
Permalink
AFAIK, accessing the propertygrid instance used by VS.Net is not possible

---------
- 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
---------
Post by mobilemobile
I'm not even sure if this is possible, but is there a way to access the
PropertyGrid in design-time -- how to access the grid in the property pane in
the VS IDE?
I want to use the PropertyValueChanged event in design-time -- I can use it
in runtime of course if I create a form with the PropertyGrid control on it.
Thanks for any help,
Steve
mobilemobile
2007-05-03 01:44:00 UTC
Permalink
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
Post by G Himangi
AFAIK, accessing the propertygrid instance used by VS.Net is not possible
---------
- 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
---------
Post by mobilemobile
I'm not even sure if this is possible, but is there a way to access the
PropertyGrid in design-time -- how to access the grid in the property pane in
the VS IDE?
I want to use the PropertyValueChanged event in design-time -- I can use it
in runtime of course if I create a form with the PropertyGrid control on it.
Thanks for any help,
Steve
G Himangi
2007-05-05 10:56:39 UTC
Permalink
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
---------
Post by mobilemobile
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
Post by G Himangi
AFAIK, accessing the propertygrid instance used by VS.Net is not possible
---------
- 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
---------
Post by mobilemobile
I'm not even sure if this is possible, but is there a way to access the
PropertyGrid in design-time -- how to access the grid in the property
pane
in
the VS IDE?
I want to use the PropertyValueChanged event in design-time -- I can
use
it
in runtime of course if I create a form with the PropertyGrid control
on
it.
Thanks for any help,
Steve
jokiz
2007-05-12 02:33:09 UTC
Permalink
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)
Post by G Himangi
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
---------
Post by mobilemobile
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
Post by G Himangi
AFAIK, accessing the propertygrid instance used by VS.Net is not possible
---------
- 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
---------
Post by mobilemobile
I'm not even sure if this is possible, but is there a way to access the
PropertyGrid in design-time -- how to access the grid in the property
pane
in
the VS IDE?
I want to use the PropertyValueChanged event in design-time -- I can
use
it
in runtime of course if I create a form with the PropertyGrid control
on
it.
Thanks for any help,
Steve
jokiz
2007-05-12 03:17:26 UTC
Permalink
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)
Post by G Himangi
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
---------
Post by mobilemobile
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
Post by G Himangi
AFAIK, accessing the propertygrid instance used by VS.Net is not possible
---------
- 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
---------
Post by mobilemobile
I'm not even sure if this is possible, but is there a way to access the
PropertyGrid in design-time -- how to access the grid in the property
pane
in
the VS IDE?
I want to use the PropertyValueChanged event in design-time -- I can
use
it
in runtime of course if I create a form with the PropertyGrid control
on
it.
Thanks for any help,
Steve
mobilemobile
2007-06-01 02:46:01 UTC
Permalink
Thanks for the info -- that worked!

Steve
Post by G Himangi
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
---------
Post by mobilemobile
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
Post by G Himangi
AFAIK, accessing the propertygrid instance used by VS.Net is not possible
---------
- 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
---------
Post by mobilemobile
I'm not even sure if this is possible, but is there a way to access the
PropertyGrid in design-time -- how to access the grid in the property
pane
in
the VS IDE?
I want to use the PropertyValueChanged event in design-time -- I can
use
it
in runtime of course if I create a form with the PropertyGrid control
on
it.
Thanks for any help,
Steve
Loading...