Click here to Skip to main content
15,887,214 members
Home / Discussions / C#
   

C#

 
AnswerRe: Badly behaving COM object. Pin
Abhinav S5-Nov-10 3:36
Abhinav S5-Nov-10 3:36 
AnswerRe: Badly behaving COM object. Pin
_Erik_5-Nov-10 3:38
_Erik_5-Nov-10 3:38 
AnswerRe: Badly behaving COM object. Pin
Pete O'Hanlon5-Nov-10 3:43
mvePete O'Hanlon5-Nov-10 3:43 
QuestionWorking with own libaries Pin
neus835-Nov-10 2:28
neus835-Nov-10 2:28 
AnswerRe: Working with own libaries Pin
Abhinav S5-Nov-10 2:45
Abhinav S5-Nov-10 2:45 
AnswerRe: Working with own libaries Pin
Not Active5-Nov-10 2:47
mentorNot Active5-Nov-10 2:47 
AnswerRe: Working with own libaries Pin
_Erik_5-Nov-10 2:54
_Erik_5-Nov-10 2:54 
GeneralRe: Working with own libaries [modified] Pin
neus835-Nov-10 4:43
neus835-Nov-10 4:43 
yes I think I'm walking a step forward.

I was creating an enum and read out the integer.

But how can I transfer enum values to a method ?

At the moment i use "int MessageType"
I will call the Method Loggerschema
i.e:
LoggerScheme(ex.ToString(),MessageType.Error);



public enum MessageType1{Information=1,Error,Warning};

public void LoggerScheme(string ex, int MessageType)
{
if(MessageType==1)
{
// This is a Information Message
// But I prefer to give Type "Information" instead 1
}
if(MessageType==2)
{
// This is a Error Message
// But I prefer to give Type "Error" instead 2
}
if(MessageType==3)
{
// This is a Warning Message
// But I prefer to give Type "Warning" instead 2
}
}

modified on Friday, November 5, 2010 10:53 AM

GeneralRe: Working with own libaries Pin
_Erik_5-Nov-10 4:45
_Erik_5-Nov-10 4:45 
GeneralRe: Working with own libaries Pin
neus835-Nov-10 5:01
neus835-Nov-10 5:01 
JokeRe: Working with own libaries Pin
_Erik_5-Nov-10 5:06
_Erik_5-Nov-10 5:06 
GeneralRe: Working with own libaries Pin
Trollslayer6-Nov-10 1:07
mentorTrollslayer6-Nov-10 1:07 
QuestionExposing interfaces of a C# executable(.EXE) application Pin
Akt_4_U5-Nov-10 2:08
Akt_4_U5-Nov-10 2:08 
AnswerRe: Exposing interfaces of a C# executable(.EXE) application Pin
_Erik_5-Nov-10 2:16
_Erik_5-Nov-10 2:16 
GeneralRe: Exposing interfaces of a C# executable(.EXE) application Pin
Akt_4_U5-Nov-10 2:28
Akt_4_U5-Nov-10 2:28 
GeneralRe: Exposing interfaces of a C# executable(.EXE) application Pin
Dave Kreskowiak5-Nov-10 2:32
mveDave Kreskowiak5-Nov-10 2:32 
GeneralRe: Exposing interfaces of a C# executable(.EXE) application Pin
Akt_4_U7-Nov-10 18:21
Akt_4_U7-Nov-10 18:21 
GeneralRe: Exposing interfaces of a C# executable(.EXE) application Pin
Dave Kreskowiak8-Nov-10 1:35
mveDave Kreskowiak8-Nov-10 1:35 
GeneralRe: Exposing interfaces of a C# executable(.EXE) application Pin
_Erik_5-Nov-10 2:49
_Erik_5-Nov-10 2:49 
GeneralRe: Exposing interfaces of a C# executable(.EXE) application Pin
Pete O'Hanlon5-Nov-10 4:12
mvePete O'Hanlon5-Nov-10 4:12 
AnswerRe: Exposing interfaces of a C# executable(.EXE) application Pin
Abhinav S5-Nov-10 2:43
Abhinav S5-Nov-10 2:43 
QuestionPrint a PDF file on any printer Pin
abbd4-Nov-10 23:49
abbd4-Nov-10 23:49 
AnswerRe: Print a PDF file on any printer Pin
_Erik_5-Nov-10 2:23
_Erik_5-Nov-10 2:23 
AnswerRe: Print a PDF file on any printer Pin
Luc Pattyn5-Nov-10 2:24
sitebuilderLuc Pattyn5-Nov-10 2:24 
QuestionApplication Design & Archiecture Help Pin
dsrao4-Nov-10 12:33
dsrao4-Nov-10 12:33 

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.