﻿<?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 - V1 » Business Objects and Data Access (How do I?)  » Custom Property Tag in C#</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 16:02:47 GMT</lastBuildDate><ttl>20</ttl><item><title>Custom Property Tag in C#</title><link>http://forum.strataframe.net/FindPost13274.aspx</link><description>I am trying to add some custom properties to my business objects and I ran across a couple of posts (e.g. &lt;A href="http://forum.strataframe.net/Topic13021-10-1.aspx#bm13027"&gt;http://forum.strataframe.net/Topic13021-10-1.aspx#bm13027&lt;/A&gt;)&amp;nbsp;that show how to attach a tag so that the property will be reflected in the intellisense and elsewhere.&amp;nbsp; It is VB and looks like this:&amp;nbsp; &lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&amp;lt;Browsable(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;false&lt;/FONT&gt;&lt;FONT size=2&gt;), &lt;BR&gt;BusinessFieldDisplayInEditor(), &lt;BR&gt;Description(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"MyCustomProperty"&lt;/FONT&gt;&lt;FONT size=2&gt;), &lt;BR&gt;DesignerSerializationVisibility(&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;DesignerSerializationVisibility&lt;/FONT&gt;&lt;FONT size=2&gt;.Hidden)&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;Is there a different set of instructions in the C# environment?&amp;nbsp; I tried using some of the attribute options, but those are not acceptable to the compiler.&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;Thanks!&lt;BR&gt;Bill&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Mon, 07 Jan 2008 15:56:46 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: Custom Property Tag in C#</title><link>http://forum.strataframe.net/FindPost13282.aspx</link><description>Good deal :)</description><pubDate>Mon, 07 Jan 2008 15:56:46 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Custom Property Tag in C#</title><link>http://forum.strataframe.net/FindPost13281.aspx</link><description>If I had a dollar for every namespace missed...&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp; I got it, now!&lt;BR&gt;Bill</description><pubDate>Mon, 07 Jan 2008 15:55:08 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: Custom Property Tag in C#</title><link>http://forum.strataframe.net/FindPost13277.aspx</link><description>I think that Greg nailed it.&amp;nbsp; One thing to keep in mind is that the namespaces and classes are the same whether you are using VB.NET or C#.&amp;nbsp; So usually this is the issue.&amp;nbsp; One thing that you can do also is to copy out the "using" statements from the top of the designer file of the BO and paste them in the BO.cs file.&amp;nbsp; This will ensure that you have all of the same imports.</description><pubDate>Mon, 07 Jan 2008 15:42:47 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Custom Property Tag in C#</title><link>http://forum.strataframe.net/FindPost13276.aspx</link><description>Did you add using statements so the attributes can be seen?&lt;br&gt;
[codesnippet]using MicroFour.StrataFrame.UI.Windows.Forms;&lt;br&gt;
using System.ComponentModel;[/codesnippet]&lt;br&gt;
I think these are the two needed...check the help file for custom properties.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Second, just in case you aren't used to attributes with c#, they use square brackets, not angle brackets:&lt;br&gt;
[codesnippet][Browsable(False),&lt;br&gt;
BusinessFieldDisplayInEditor(),&lt;br&gt;
Description("Full Name"),&lt;br&gt;
DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [/codesnippet]</description><pubDate>Mon, 07 Jan 2008 15:26:39 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item></channel></rss>