all groups > dotnet windows forms designtime > may 2004 >
You're in the

dotnet windows forms designtime

group:

IDesignerSerializationService does not return instance


IDesignerSerializationService does not return instance joerg NO[at]SPAM krause.net
5/18/2004 8:37:41 AM
dotnet windows forms designtime:
Hi designers,

I've written my own designer following some articles postet here.

It works as expected, but I cannot run design time serialization.

I tried to get the right service this way:

IDesignerSerializationService ds =
(IDesignerSerializationService)this.host.GetService(typeof(IDesignerSerializationService));

But unless I implement IDesignerSerializationService the method
return null. I don't want to implement it by myself, because
I deal with winform controls only and I think I can use the internal
serializer.

I want to call ds.Serialize(MyControlCollection) if I need the
serialized stuff, but I want not use any customization.

Can anybody give me a hint how to use the serialization outside
the VS.NET environment?

Thank you very much,

Re: IDesignerSerializationService does not return instance Frank Hileman
5/24/2004 9:35:47 AM
Hello Joerg,

That API is not public now. The code is not in the .NET framework; it is in
visual studio, in a non-redistributable. In Whidbey I think the situation
will change.

Regards,
Frank Hileman

check out VG.net: www.vgdotnet.com
Animated vector graphics system
Integrated Visual Studio .NET graphics editor

[quoted text, click to view]
(IDesignerSerializationService)this.host.GetService(typeof(IDesignerSerializ
ationService));
[quoted text, click to view]

AddThis Social Bookmark Button