Checkable Enum Values in PropertyGrid

G

Guest

Can somebody tell me how to allow the user to check and uncheck Enum flags in a PropertyGrid. In other words, how to display a drop down box that contains a check next to each enum value as well as a None button at the bottom when the user selects the property in a PropertyGrid

Thank you
Lance
 
P

Peter Huang

Hi Lance,

First of all, I would like to confirm my understanding of your issue.
From your description, I understand that you wants to show the checked
listbox when you edit a enum property in the property grid.
Have I fully understood you? If there is anything I misunderstood, please
feel free to let me know.

I think you may take a look at the link below.
Flagged Enum Properties
http://weblogs.asp.net/asmith/articles/32692.aspx

Make Your Components Really RAD with Visual Studio .NET Property Browser
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/ht
ml/vsnetpropbrow.asp


Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top