Click here to Skip to main content
15,884,353 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm trying to add a string to the Property Grid at design time but can't figure out why it isn't working.

[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
[Category("Design Time")]
[Description("Question to be Asked")]
[Browsable(true)]
public string Question { get; set };


I want to be able to see "Question" on the property grid, so that I can write text and have it serialized at design time.

What am I doing wrong?
Posted
Comments
Sergey Alexandrovich Kryukov 12-Nov-12 19:36pm    
Is it in the control class?
--SA

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