Windows Develop Bookmark and Share   
 index > Windows Forms General > how to make a property for enum ?
 

how to make a property for enum ?

hello all,

I define an enum at my namespace. 
I use it at one class (that belong to this namespace) as private,
and want to have a prperty for it.

I've try to do it like:
public "name of the enum"  "name of the property"
{...}

but no succes.

have a nice day,
    Effi.
MigrationUser 1  Saturday, May 31, 2003 12:25 PM
your syntax is fine, but you need to declare your enum as public also, because you are trying to use it with a public property, therefore it has to be public too.  the compiler should've told you that.  it does in VB.NET anyway.
MigrationUser 1  Saturday, May 31, 2003 12:52 PM

You can use google to search for other answers

Custom Search

More Threads

• Changing Text In WebBrowser
• Justify values within a datagrid
• Fill Ellipse
• Windows Service OnStart()
• Issue with SetDlgItemText (Win API) function
• Sizing Controls On A Form
• WIA2 Automation, Kodak Cameras and Deleting Items.
• Dynamic generation of Datagrid template columns?
• check if item is selected
• WF2WF