Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
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 
GeneralGetting nested User Control item instance Pin
n3d3us20-Sep-03 13:15
n3d3us20-Sep-03 13:15 
GeneralRe: Getting nested User Control item instance Pin
n3d3us20-Sep-03 13:56
n3d3us20-Sep-03 13:56 
QuestionSockets: Threaded & Async? Pin
oblius20-Sep-03 12:43
oblius20-Sep-03 12:43 
AnswerRe: Sockets: Threaded & Async? Pin
Blake Coverett20-Sep-03 14:01
Blake Coverett20-Sep-03 14:01 
GeneralRe: Sockets: Threaded & Async? Pin
oblius20-Sep-03 14:11
oblius20-Sep-03 14:11 

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.