Reputation: 19057
I have this class:
public class CameraWindow : PictureBox
How can i add a property that will show up here:
It's prolly really easy but i cant find a way of doing that =\
Upvotes: 0
Views: 426
Reputation: 83014
You need to annotate the property with the Browsable attribute.
e.g.
public class CameraWindow : PictureBox
{
[Browsable(true)]
public int MyProperty{get;set;}
}
You can also add a Category attribute if you want your property to appear in a specific grouping in the properties window.
Upvotes: 3
Reputation: 1604
using System.ComponentModel;
[Browsable(true)]
public bool SampleProperty { get; set; }
Upvotes: 1