Click here to Skip to main content
15,901,505 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to parse a dataset Pin
phimix22-Sep-03 6:13
phimix22-Sep-03 6:13 
GeneralMulti-line ListView control Pin
Member 46249021-Sep-03 20:10
Member 46249021-Sep-03 20:10 
GeneralKeyboard in C# Pin
deanoA21-Sep-03 17:37
deanoA21-Sep-03 17:37 
GeneralRe: Keyboard in C# Pin
Blake Coverett21-Sep-03 19:04
Blake Coverett21-Sep-03 19:04 
GeneralRe: Keyboard in C# Pin
Jim MacDonald22-Sep-03 6:10
Jim MacDonald22-Sep-03 6:10 
Generalsingle applications with multiple forms Pin
jerrycainjr21-Sep-03 14:56
jerrycainjr21-Sep-03 14:56 
GeneralRe: single applications with multiple forms Pin
Blake Coverett21-Sep-03 17:27
Blake Coverett21-Sep-03 17:27 
GeneralRe: single applications with multiple forms Pin
Azel Low21-Sep-03 20:51
Azel Low21-Sep-03 20:51 
GeneralRe: single applications with multiple forms Pin
Blake Coverett21-Sep-03 22:25
Blake Coverett21-Sep-03 22:25 
GeneralRe: single applications with multiple forms Pin
Azel Low21-Sep-03 22:57
Azel Low21-Sep-03 22:57 
GeneralRe: single applications with multiple forms Pin
Blake Coverett21-Sep-03 23:42
Blake Coverett21-Sep-03 23:42 
GeneralEnum Question Pin
Wjousts21-Sep-03 11:23
Wjousts21-Sep-03 11:23 
GeneralRe: Enum Question Pin
J. Dunlap21-Sep-03 11:31
J. Dunlap21-Sep-03 11:31 
Add them to a combobox like this:
combo.Items.AddRange(Enum.GetNames(typeof(enum_typename)));


Find out the value from the selected name:
int itemIndex = combo.SelectedIndex;
string name = combo.Items[itemIndex].ToString();
datatype Value = (enum_typename)Enum.Parse(typeof(enum_typename), name);


Get a name from a value:

string name=Enum.GetName(typeof(enum_typename),value_variable);



"Blessed are the peacemakers, for they shall be called sons of God." - Jesus

"You must be the change you wish to see in the world." - Mahatma Gandhi







GeneralRe: Enum Question Pin
Wjousts21-Sep-03 11:44
Wjousts21-Sep-03 11:44 
GeneralCOM+ object pooling Pin
devvvy21-Sep-03 0:27
devvvy21-Sep-03 0:27 
GeneralRe: COM+ object pooling Pin
Daniel Turini22-Sep-03 0:36
Daniel Turini22-Sep-03 0:36 
GeneralRe: COM+ object pooling Pin
devvvy22-Sep-03 0:48
devvvy22-Sep-03 0:48 
GeneralCustom Namespaces Pin
maraymer20-Sep-03 23:42
maraymer20-Sep-03 23:42 
GeneralRe: Custom Namespaces Pin
Paul Watson21-Sep-03 10:43
sitebuilderPaul Watson21-Sep-03 10:43 
GeneralIcon for a control Pin
CGi0320-Sep-03 22:49
CGi0320-Sep-03 22:49 
GeneralRe: Icon for a control Pin
leppie20-Sep-03 23:12
leppie20-Sep-03 23:12 
GeneralBinding multiple file collections to a form control Pin
Member 52585820-Sep-03 19:01
Member 52585820-Sep-03 19:01 
GeneralRe: Binding multiple file collections to a form control Pin
Blake Coverett20-Sep-03 20:12
Blake Coverett20-Sep-03 20:12 
Generalinterrupt mousemove or scrollbar Pin
novachen20-Sep-03 18:43
novachen20-Sep-03 18:43 
Generali want the code of to upload file with c# Pin
182720-Sep-03 14:39
182720-Sep-03 14:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.