Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / March 2005

Tip: Looking for answers? Try searching our database.

I need a sample of an IDesignerSerializationService implementation

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ipaqlinux48 - 16 Dec 2004 09:23 GMT
Hi,

I've just finished my custom windows form designer application. I can place
different controls on my container. However, the next step is to serialize
the container. Looking in the MSDN documentation, I need to implement the
IDesignerSerializationService interface.

After searching the internet, I've found a possible solution in the #develop
project. It contains an XmlFormGenerator class. However, I've found a serious
bug in this class. When I use the GaugeContainer control from Dundas, the
method is locked into an infinite recursive loop.

Can someone give me a sample/URL on how to serialize a Control object?
Ulrich Sprick - 30 Dec 2004 20:36 GMT
Hi,

you can use a CodeDomSerializer to persist component properties in the
initialization code of the their container.
Shawn Burke has written on that topic in the MSDN documents. Search in
titles for

   Customizing Code Generation in the .NET Framework Visual Designers

If i'm not wrong, you can call the InstanceDescriptor to return the
serializer for a coponent. I am quite new to designers, so i'm not really
sure...

Another interesting article has been written by Tim Dawson, Hosting Windows
Forms Designers. Although there is some conflict between him and the
SharpDevelop team, the text may provide some inside looks. The url is

   http://www.divil.co.uk/net/articles/

Another thing I read in a blog somewhere: the Windows Forms designer reads
and interprets the InitializeComponent() code in order to setup the form in
design mode and initialize controls. The code cannot be just executed,
because the code is "under construction".

HTH,
ulrich

> Hi,
>
[quoted text clipped - 9 lines]
>
> Can someone give me a sample/URL on how to serialize a Control object
sakshi kaur - 04 Mar 2005 04:44 GMT
Hi,

i find myself in the same situation...
i am working on creating a FormdDesigner..and need to implement Cut Copy
paste...
Even i am working on Dundas gauge controls...

i will be highly obliged if u wuld help me in implementing this...

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.