﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » .NET Forums » General .NET Discussion  » How to get VS to serialize code to designer file</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 03:11:18 GMT</lastBuildDate><ttl>20</ttl><item><title>How to get VS to serialize code to designer file</title><link>http://forum.strataframe.net/FindPost18608.aspx</link><description>I built a component (inherited from Component), then I inherited from that class, added a property and a few other things, then inherited from [i]that[/i] class.  Looks something like this:&lt;br&gt;
&lt;br&gt;
ConcreteClass -&gt;  Inherits MiddleClass -&gt; Inherits BaseClass -&gt; Inherits Component&lt;br&gt;
&lt;br&gt;
The concrete class doesn't have a designer file, I just created a class and set the inheritance.  When I set a property in the property window, it serializes the code to main file (the only file).  I'd like it to serialize to a designer file.  How do I get VS to do this?  I tried just creating a designer file myself (with file name of ConcreteClass.Designer.vb) and in the same namespace and as a partial class....no joy. What's the trick to using designer files?&lt;br&gt;
&lt;br&gt;</description><pubDate>Wed, 20 Aug 2008 09:19:32 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: How to get VS to serialize code to designer file</title><link>http://forum.strataframe.net/FindPost18624.aspx</link><description>Yep, I'd start with a component and work backwards. :)</description><pubDate>Wed, 20 Aug 2008 09:19:32 GMT</pubDate><dc:creator>Dustin Taylor</dc:creator></item><item><title>RE: How to get VS to serialize code to designer file</title><link>http://forum.strataframe.net/FindPost18612.aspx</link><description>Hiya Greg,&lt;/P&gt;&lt;P&gt;I usually&amp;nbsp;start by creating a component instead of a vanilla class and then&amp;nbsp;add the inherits statement&amp;nbsp;that way the designer file is already plumbed, however I think all you would need to do would be to move or create&amp;nbsp;your init component in the partial class and then it should serialize the values there or create a component and just copy and paste what you have does so far.&lt;/P&gt;&lt;P&gt;Paul</description><pubDate>Wed, 20 Aug 2008 08:31:17 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item></channel></rss>