Click here to Skip to main content
Sign Up to vote bad
good
See more: C#3.0
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 12 Nov '12 - 13:30

Comments
Sergey Alexandrovich Kryukov - 12 Nov '12 - 19:36
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)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 218
1 Ron Beyer 215
2 Aarti Meswania 190
3 Rohan Leuva 178
4 Mahesh Bailwal 160
0 Sergey Alexandrovich Kryukov 8,553
1 OriginalGriff 6,899
2 CPallini 3,648
3 Rohan Leuva 2,963
4 Maciej Los 2,308


Advertise | Privacy | Mobile
Web02 | 2.6.130516.1 | Last Updated 12 Nov 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid