I am using Visual Studio 2015 Community to create an application using Windows Forms in C#. I have created a custom control (implementing a Button) with public properties and settings. How do I get those custom properties/settings to appear in the Visual Studio property manager when I add the custom button to a form?
I have private backers with public accessors as one would normally do;
I used to do this many years ago but I have forgotten how to get it to appear in the Property Manager. By default the VS 2015, and previous versions, Property Manager is the area where one would normally set the properties of the standard controls and is located in the lower right hand side of the IDE.
here is a snippet of one of the properties I am working with:
public class Spot : Button
{
// backers for the properties
private bool isselected = false;
// //////////////////////////////////////////////////////////////
// user accessable properties relying on the above backers
//
/// <summary>
/// Get/Set if the spot is selected
/// </summary>
public bool isSelected
{
get
{
return isselected;
}
set
{
isselected = value;
}
}
}
Hope someone here can help remind me how. I did do several searches here, and through google, but no place seems to have what I am looking for. With my specific searches that include "Property Manager" I get allot of real-estate results that are no where near what I am looking for.