Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have added a custom property to one of my base classes but do not know how to get that property to show up in VS2012 design view Properties tab.

How can I make that happen?

Thanks so much
Posted
Comments
BillWoodruff 17-Mar-14 11:41am    
When I use the Solution Explorer in Visual Studio, I see everything in the Project(s), including private Fields, public Properties, etc. Can you clarify exactly what you are looking at when you do NOT see your Property ?
Charles T. Blankenship 17-Mar-14 11:54am    
Here is the property and my attempt to resolve the problem ... didn't work ... I'd like to see the property FillAllStoredProcedure in the properties tab.

namespace Crucible.Business
{
[Serializable()]
public partial class BaseBusinessLayer : BusinessLayer
{
protected childBOLoader _childBOs = new childBOLoader();

protected string fillAllSQLStatement = "SELECT * FROM @tableName";
[Category("Crucible: Actions")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public String FillAllStoredProcedure
{
get
{
return (System.String)fillAllSQLStatement;
}
set
{
fillAllSQLStatement = value;
}
}
BillWoodruff 17-Mar-14 12:59pm    
I can only assume that you are describing something other than the Solution Explorer view, since every Form, UserControl, Class, Property, Field, Method, etc., appears there. Perhaps when you use the term "Properties Tab" you are referring to what's displayed if you click the "wrench" icon in the Solution Explorer ?: that shows you things like the Build action, and project configuration: you will never see any Field, Property, or Method there.

Wish I could help !
Charles T. Blankenship 17-Mar-14 16:22pm    
Ah crap! I figured it out ... there was an error in my base class that was preventing all child objects from instantiating in the designer ... once that was cleared up the property appeared right where it should have. Sorry to have bothered you all!
BillWoodruff 17-Mar-14 17:35pm    
No problem, I am frequently harassed by demons who delight in screwing up my code, also :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900