﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum / StrataFrame Application Framework / WinForms (How do I?)  / Creating a user control / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>forum@strataframe.net</webMaster><lastBuildDate>Wed, 07 Jan 2009 16:22:49 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Creating a user control</title><link>http://forum.strataframe.net/Topic2227-7-1.aspx</link><description>Glad to help :)</description><pubDate>Thu, 17 Aug 2006 11:54:31 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Creating a user control</title><link>http://forum.strataframe.net/Topic2227-7-1.aspx</link><description>&lt;FONT color=#008080 size=2&gt;&lt;P&gt;DesignerSerializationVisibility&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;(&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;DesignerSerializationVisibility&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt;.Content)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt;That was what I needed.  Thanks&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Thu, 17 Aug 2006 11:53:16 GMT</pubDate><dc:creator>Scott</dc:creator></item><item><title>RE: Creating a user control</title><link>http://forum.strataframe.net/Topic2227-7-1.aspx</link><description>When you expose a collection property you have to set the designer serialization to allow for content.  This tells the Visual Studio form designer how to properly set the property when saving to the designer file.  You property will need to look something like this:&lt;/P&gt;&lt;P&gt;/// &amp;lt;summary&amp;gt;&lt;BR&gt;        /// A custom collection exposed to a property sheet.  This sets the designer&lt;BR&gt;        /// serialization to content so it will be properly saved within the form&lt;BR&gt;        /// designer.&lt;BR&gt;        /// &amp;lt;/summary&amp;gt;&lt;BR&gt;        /// &amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;&lt;BR&gt;        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]&lt;BR&gt;        public System.Collections.CollectionBase MyCollection&lt;BR&gt;        {&lt;BR&gt;            get&lt;BR&gt;            {&lt;BR&gt;                return _MyCollection;&lt;BR&gt;            }&lt;BR&gt;            set&lt;BR&gt;            {&lt;BR&gt;                _MyCollection = value;&lt;BR&gt;            }&lt;BR&gt;        }</description><pubDate>Thu, 17 Aug 2006 11:39:00 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>Creating a user control</title><link>http://forum.strataframe.net/Topic2227-7-1.aspx</link><description>I know this  a basic question but I can't find any information on how to do this.  I have created a class based on the SFUserControl.  I add a listview to the control.  I now want to expose the listviews columns property on the new usercontrol.  I can expost it at design time but every time I reopen the form any values that were set are gone.  Maybe I just am exposing the property incorrectly.  Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Scott</description><pubDate>Thu, 17 Aug 2006 11:31:38 GMT</pubDate><dc:creator>Scott</dc:creator></item></channel></rss>