﻿<?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  » Public Form property not shown in Property editor</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 04:15:25 GMT</lastBuildDate><ttl>20</ttl><item><title>Public Form property not shown in Property editor</title><link>http://forum.strataframe.net/FindPost19559.aspx</link><description>I have a couple of properties, both of type Color, that I added to a form. They are public properties, I've set up a Category() and Description() and added ShouldSerialize/Reset methods for them.  However, I can't get them to show up in the property editor (grid).  I would have sworn that there wasn't anything special to get this to work, but I'm baffled. Any ideas what I could be doing wrong?  &lt;br&gt;
&lt;br&gt;
Here's the code:&lt;br&gt;
&lt;br&gt;
[codesnippet]Private _passingBackColor As Color = Color.LightGreen&lt;br&gt;
&lt;br&gt;
''' &amp;lt;summary&amp;gt;&lt;br&gt;
''' Define the color used to highlight items that have passing&lt;br&gt;
''' scores.&lt;br&gt;
''' &amp;lt;/summary&amp;gt;&lt;br&gt;
&amp;lt;Category("RAMS: Score Formatting") _&lt;br&gt;
, Description("Define the color used to highlight passing scores in the list.")&amp;gt; _&lt;br&gt;
Public Property PassingBackColor() As Color&lt;br&gt;
Get&lt;br&gt;
Return _passingBackColor&lt;br&gt;
End Get&lt;br&gt;
Set(ByVal value As Color)&lt;br&gt;
_passingBackColor = value&lt;br&gt;
End Set&lt;br&gt;
End Property&lt;br&gt;
&lt;br&gt;
Private _failingBackColor As Color = Color.LightPink&lt;br&gt;
&lt;br&gt;
''' &amp;lt;summary&amp;gt;&lt;br&gt;
''' Define the color used to highlight items that have failing&lt;br&gt;
''' scores.&lt;br&gt;
''' &amp;lt;/summary&amp;gt;&lt;br&gt;
&amp;lt;Category("RAMS: Score Formatting") _&lt;br&gt;
, Description("Define the color used to highlight failing scores in the list.")&amp;gt; _&lt;br&gt;
Public Property FailingBackColor() As Color&lt;br&gt;
Get&lt;br&gt;
Return _failingBackColor&lt;br&gt;
End Get&lt;br&gt;
Set(ByVal value As Color)&lt;br&gt;
_failingBackColor = value&lt;br&gt;
End Set&lt;br&gt;
End Property&lt;br&gt;
&lt;br&gt;
''' &amp;lt;summary&amp;gt;&lt;br&gt;
''' Return if the designer should serialize the PassingBackColor&lt;br&gt;
''' property.&lt;br&gt;
''' &amp;lt;/summary&amp;gt;&lt;br&gt;
''' &amp;lt;returns&amp;gt;True if property needs to be serialized to the designer&amp;lt;/returns&amp;gt;&lt;br&gt;
''' &amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;&lt;br&gt;
Public Function ShouldSerializePassingBackColor() As Boolean&lt;br&gt;
Return _passingBackColor &amp;lt;&amp;gt; Color.LightGreen&lt;br&gt;
End Function&lt;br&gt;
&lt;br&gt;
''' &amp;lt;summary&amp;gt;&lt;br&gt;
''' Reset the PassingBackColor to its default value and remove serialization&lt;br&gt;
''' the property from the 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;
Public Sub ResetPassingBackColor()&lt;br&gt;
_passingBackColor = Color.LightGreen&lt;br&gt;
End Sub&lt;br&gt;
&lt;br&gt;
''' &amp;lt;summary&amp;gt;&lt;br&gt;
''' Return if the designer should serialize the FailingBackColor&lt;br&gt;
''' property.&lt;br&gt;
''' &amp;lt;/summary&amp;gt;&lt;br&gt;
''' &amp;lt;returns&amp;gt;True if property needs to be serialized to the designer&amp;lt;/returns&amp;gt;&lt;br&gt;
''' &amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;&lt;br&gt;
Public Function ShouldSerializeFailingBackColor() As Boolean&lt;br&gt;
Return _failingBackColor = Color.LightPink&lt;br&gt;
End Function&lt;br&gt;
&lt;br&gt;
''' &amp;lt;summary&amp;gt;&lt;br&gt;
''' Reset the FailingBackColor to its default value and remove serialization&lt;br&gt;
''' the property from the 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;
Public Sub ResetFailingBackColor()&lt;br&gt;
_failingBackColor = Color.LightPink&lt;br&gt;
End Sub[/codesnippet]</description><pubDate>Mon, 22 Sep 2008 18:02:00 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Public Form property not shown in Property editor</title><link>http://forum.strataframe.net/FindPost19603.aspx</link><description>Thanks! Mystery solved!  :w00t:</description><pubDate>Mon, 22 Sep 2008 18:02:00 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Public Form property not shown in Property editor</title><link>http://forum.strataframe.net/FindPost19599.aspx</link><description>You got it ;)</description><pubDate>Mon, 22 Sep 2008 15:44:34 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Public Form property not shown in Property editor</title><link>http://forum.strataframe.net/FindPost19595.aspx</link><description>OK, I think Trent has the answer. I didn't know that properties of a class didn't show up on that same class (in this case a form). I had added the properties to a form and then looked for those properties on that same form in the designer.  If I understand you correctly, they would only show up for inherited forms or in the case of components or controls when dropped onto another container control.  Is that correct?</description><pubDate>Mon, 22 Sep 2008 13:51:08 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Public Form property not shown in Property editor</title><link>http://forum.strataframe.net/FindPost19586.aspx</link><description>It looks correct.&amp;nbsp; If you are adding the properties to a class and then going into the designer of the same class, the properties will not show up.&amp;nbsp; However, if you drop the control on a different designer (i.e. drop a textbox on a form) or subclass the class, they will then show up on the inherited class within the designer.&amp;nbsp; Past that, the only other reason that I could think of is if the class in question is private or the heirarchy above these properties is hiding them due to their limited declaration.&amp;nbsp; Past that, I don't see anything blaring at me.</description><pubDate>Mon, 22 Sep 2008 09:30:23 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Public Form property not shown in Property editor</title><link>http://forum.strataframe.net/FindPost19561.aspx</link><description>Here is what works for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Category("Airbase: Custom Settings")&amp;gt; _&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Description("When set to False, form data hotkeys will be disabled.")&amp;gt; _&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DefaultValue(True)&amp;gt; _&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Property UseAppHotKeys() As Boolean&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Get&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return Me.p_UseAppHotKeys&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Get&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set(ByVal value As Boolean)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me.p_UseAppHotKeys = value&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Set&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Property</description><pubDate>Sat, 20 Sep 2008 13:08:01 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item><item><title>RE: Public Form property not shown in Property editor</title><link>http://forum.strataframe.net/FindPost19560.aspx</link><description>Hey Greg.&lt;/P&gt;&lt;P&gt;Not sure this is the cause, but I define the DescriptionAttribute, not the Description, as you are coding over there:&lt;/P&gt;&lt;P&gt;''' &amp;lt;summary&amp;gt;&lt;BR&gt;''' Define the color used to highlight items that have passing&lt;BR&gt;''' scores.&lt;BR&gt;''' &amp;lt;/summary&amp;gt;&lt;BR&gt;&amp;lt;Category("RAMS: Score Formatting") _&lt;BR&gt;&amp;nbsp; , Description&lt;STRONG&gt;Attribute&lt;/STRONG&gt;("Define the color used to highlight passing scores in the list.")&amp;gt; _&lt;BR&gt;Public Property PassingBackColor() As Color&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Get&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return _passingBackColor&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Get&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set(ByVal value As Color)&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _passingBackColor = value&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Set&lt;BR&gt;End Property&lt;BR&gt;&lt;BR&gt;</description><pubDate>Sat, 20 Sep 2008 08:17:31 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>