Click here to Skip to main content
15,564,343 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do I cast a double to an int? Pin
David198711-Apr-11 10:04
David198711-Apr-11 10:04 
GeneralRe: How do I cast a double to an int? Pin
Luc Pattyn11-Apr-11 10:25
sitebuilderLuc Pattyn11-Apr-11 10:25 
AnswerRe: How do I cast a double to an int? Pin
charles henington12-Apr-11 2:34
charles henington12-Apr-11 2:34 
Questiondropdown to enum Pin
fififlowertot11-Apr-11 6:04
fififlowertot11-Apr-11 6:04 
AnswerRe: dropdown to enum Pin
OriginalGriff11-Apr-11 6:11
mvaOriginalGriff11-Apr-11 6:11 
GeneralRe: dropdown to enum Pin
fififlowertot11-Apr-11 6:35
fififlowertot11-Apr-11 6:35 
GeneralRe: dropdown to enum Pin
musefan11-Apr-11 6:40
musefan11-Apr-11 6:40 
GeneralRe: dropdown to enum Pin
OriginalGriff11-Apr-11 6:48
mvaOriginalGriff11-Apr-11 6:48 
As musefan said, try what I gave you, not an interpretation of it:
For example:
public enum DriveType : int
    {
    Unknown = 0,
    NoRoot = 1,
    Removable = 2,
    Localdisk = 3,
    Network = 4,
    CD = 5,
    RAMDrive = 6
    }

...

DriveType dt = (DriveType) Enum.Parse(typeof(DriveType), "RAMDrive");

Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

Manfred R. Bihy: "Looks as if OP is learning resistant."

GeneralRe: dropdown to enum Pin
BobJanova11-Apr-11 6:39
BobJanova11-Apr-11 6:39 
GeneralRe: dropdown to enum Pin
OriginalGriff11-Apr-11 6:49
mvaOriginalGriff11-Apr-11 6:49 
GeneralRe: dropdown to enum Pin
fififlowertot11-Apr-11 6:50
fififlowertot11-Apr-11 6:50 
GeneralRe: dropdown to enum Pin
OriginalGriff11-Apr-11 7:03
mvaOriginalGriff11-Apr-11 7:03 
GeneralRe: dropdown to enum Pin
BobJanova11-Apr-11 23:16
BobJanova11-Apr-11 23:16 
AnswerRe: dropdown to enum Pin
Alan N11-Apr-11 6:53
Alan N11-Apr-11 6:53 
QuestionHow to sync Data of 2 c# projects? Pin
akosidandan11-Apr-11 4:04
akosidandan11-Apr-11 4:04 
AnswerRe: How to sync Data of 2 c# projects? Pin
Wayne Gaylard11-Apr-11 4:11
professionalWayne Gaylard11-Apr-11 4:11 
GeneralRe: How to sync Data of 2 c# projects? Pin
akosidandan11-Apr-11 4:28
akosidandan11-Apr-11 4:28 
GeneralRe: How to sync Data of 2 c# projects? Pin
Wayne Gaylard11-Apr-11 4:36
professionalWayne Gaylard11-Apr-11 4:36 
GeneralRe: How to sync Data of 2 c# projects? Pin
akosidandan11-Apr-11 4:41
akosidandan11-Apr-11 4:41 
GeneralRe: How to sync Data of 2 c# projects? Pin
Wayne Gaylard11-Apr-11 4:52
professionalWayne Gaylard11-Apr-11 4:52 
QuestionNot able to see the dll which is registered successfully in cache Pin
meeram39511-Apr-11 2:44
meeram39511-Apr-11 2:44 
AnswerRe: Not able to see the dll which is registered successfully in cache Pin
Wayne Gaylard11-Apr-11 3:01
professionalWayne Gaylard11-Apr-11 3:01 
GeneralRe: Not able to see the dll which is registered successfully in cache Pin
meeram39511-Apr-11 3:13
meeram39511-Apr-11 3:13 
GeneralRe: Not able to see the dll which is registered successfully in cache Pin
meeram39511-Apr-11 3:16
meeram39511-Apr-11 3:16 
GeneralRe: Not able to see the dll which is registered successfully in cache Pin
Wayne Gaylard11-Apr-11 3:21
professionalWayne Gaylard11-Apr-11 3:21 

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.