Hello again. well, in the last week I've posted about having a problem related with an activex control that is supposed to be used from vb6 ide. the problems are related with Color properties. after several tests, I've noticed that if my class is exposed and registered as a simple COM object, then I can access and read all the properties that are exposed (including the Color props).
interestingly (or maybe not, since I'm trying to figure this out for a week), if I register the class as an activex control (by setting the necessary info at the registry - ex.: the control key, the typelib key, etc), then I'm able to add my control to the toolbox but when I drag it into the designer, then I can't see the color properties on the prop window. this can be easily reproduced by building a class that inherits from control and by adding a property (whose type is Color). If you add the register script that can be found here http://www.ondotnet.com/pub/a/dotnet/2003/01/20/winformshosting.html and you should be able to have an activex control. I'd really love to here a good explanation about this...can anyone think on why doesn't the Color prop be shown (and be read/modified at runtime)? in fact, if it works ok on normal COM objects, the why shouldn't it work with an activex control? thanks. -- Regards, Luis Abreu email: labreu_at_gmail.com http://weblogs.pontonetpt.com/luisabreu http://www.pontonetpt.com http://weblogs.pontonetpt.com/ =================================== This list is hosted by DevelopMentor� http://www.develop.com Some .NET courses you may be interested in: Essential .NET: building applications and components with CSharp August 30 - September 3, in Los Angeles http://www.develop.com/courses/edotnet View archives and manage your subscription(s) at http://discuss.develop.com
