Get Application object inside TypeConverter.ConvertFrom

D

David Thielen

Hi;

I think this is impossible. (C#, not VSTO.)

In my add-in, I pop up a form. In that form I have a PropertyGrid. For one
of the object properties in the PropertyGrid I gave it a TypeConverter. As
the TypeConverter as associated as an attribute, it's constructor has no
parameters.

In one of the TypeConverter methods, I need the Application object. Is there
any way to determine the Application object from inside my TypeConverter
derived class? It is inside the ConvertFrom() method so nothing about the
object it is an attribute of is passed into it.
 
P

Peter Huang [MSFT]

Hi

I think we can not retrieve the data from the ConvertFrom, because it is
called by Design time dll, but not the Office Application Addin.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

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