c# - display enum inside radio buttons, winforms -


i have enum datatype

public enum userchoices { basic = 0, lite = 1, standard = 2 }; 

how can use enum property inside winforms radio button choices?

use below code name , values in array.

string[] names = enum.getnames(typeof(myenum)); myenum[] values = (myenum[])enum.getvalues(typeof(myenum)); 

now

for( int = 0; < names.length; i++ ) {     //add item radio button list     //names[i] going text     //values[i] going value } 

queries welcomed!


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -