Bob Rundle
7/9/2004 1:26:00 PM
Ok...here''s some more info.
I implemented the ICustomTypeDescriptor interface in the remote object and I
got further.
However now the except is that AttributeCollection in System.ComponentModel
is not marked with the serializable attribute.
It appears that I can''t win going down this route. Which is very surprising
to me because I throught it would be very natural for the property grid to
enumerate interface properties.
Regards,
Bob Rundle
"Bob Rundle" <rundle@rundle.com> wrote in message
news:ujJzv3aZEHA.3564@TK2MSFTNGP11.phx.gbl...
> I''m trying to use the property grid to browse properties on a remoting
> object. While setting the SelectedObject property of the PropertyGrid I
get
> the following exception...
>
> "Attempted to call a method declared on type
> System.ComponentModel.ICustomTypeDescriptor on an object which exposes
> joaSimulationServer.joaSimulationResources."
>
> Now joaSimulationServer.joaSimulationResources is the remote object. The
> only thing available on the client side is the interface to this object
> ISimulationResources. I would have expected the property grid to
enumerate
> the properties in this interface in the same way that the VB object
browser
> enumerates COM properties from IDL info.
>
> What am I doing wrong?
>
> Regards,
> Bob Rundle
>
>