VB.Net Addin and Using PropertyGrid

A

Andy Hough

Hi all,

I'm developing a VB.Net addin for Visio 2003 and all is going smoothly
until I decided to use the PropertyGrid on a form.
The control is fine until I want to create a custom dropdown list - it
simply refuses to accept the list exists - all other properties are
fine.
I have worked though the examples on MSDN and the article on Code
Project and they all work outside Visio - i.e. on a simple .Net windows
app.

I'm calling the form as a result of a shape being dropped on a page,
the custom list is created usin gthe StringCoverter as in the examples.

If anyone can shed some light on this I will be truly grateful.

Regards

Andy Hough
 
A

Andy Hough

Andy said:
Hi all,

I'm developing a VB.Net addin for Visio 2003 and all is going smoothly
until I decided to use the PropertyGrid on a form.
The control is fine until I want to create a custom dropdown list - it
simply refuses to accept the list exists - all other properties are
fine.
I have worked though the examples on MSDN and the article on Code
Project and they all work outside Visio - i.e. on a simple .Net
windows app.

I'm calling the form as a result of a shape being dropped on a page,
the custom list is created usin gthe StringCoverter as in the
examples.

If anyone can shed some light on this I will be truly grateful.

Regards

Andy Hough

Relax all - I've solved the problem, although it wasn't obvious!!

It would appear that a few people have had problems using the
TypeConverters in Add-In projects in .Net, and there appears to be no
hard soluton.

For those interested, have a look at
http://groups.google.com/groups?&threadm=OaQHYr9GDHA.1960@TK2MSFTNGP11
..phx.gbl which describes the problem.

My solution was when creating my
<TypeConverter(GetType(ObjList))> to not use GetType but to give the
fully qualified name of the class, therefore
<TypeConverter("VisioAddin.ObjectList")

And all now works

Hope this is of use to someone
 

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