Click here to Skip to main content
15,895,256 members
Home / Discussions / C#
   

C#

 
AnswerRe: Add an icon to the application Pin
John_Adams22-May-08 0:54
John_Adams22-May-08 0:54 
GeneralRe: Add an icon to the application Pin
ananthrahul22-May-08 1:28
ananthrahul22-May-08 1:28 
QuestionIntellisense annoyance. Pin
Jon Hulatt21-May-08 23:51
Jon Hulatt21-May-08 23:51 
AnswerRe: Intellisense annoyance. Pin
Shree22-May-08 0:14
Shree22-May-08 0:14 
GeneralRe: Intellisense annoyance. Pin
Jon Hulatt22-May-08 1:08
Jon Hulatt22-May-08 1:08 
GeneralRe: Intellisense annoyance. Pin
GuyThiebaut22-May-08 1:35
professionalGuyThiebaut22-May-08 1:35 
QuestionWindows service event log message file Pin
George_George21-May-08 23:25
George_George21-May-08 23:25 
AnswerRe: Windows service event log message file Pin
Shree22-May-08 0:08
Shree22-May-08 0:08 
This is the event logging code from the TaskVision sample. Hope it helps.

private const string c_EventSource = "TaskVision";
private const string c_LogName = "Application";

public static void Write(string errorMessage)
{
    try
    {
        //The event source should be created during installation
        if (EventLog.SourceExists(c_EventSource))
        {
            //Write the message as an error
            EventLog msg = new EventLog(c_LogName);
            msg.Source = c_EventSource;
            msg.WriteEntry(errorMessage);
        }
        else
        {
            //Try to create the event source for the next error. This requires admin rights.
            EventLog.CreateEventSource(c_EventSource, c_LogName);
        }
    }
    catch
    { }
}

GeneralRe: Windows service event log message file Pin
George_George22-May-08 1:11
George_George22-May-08 1:11 
QuestionOutlook style UI sample code Pin
AndrusM21-May-08 22:30
AndrusM21-May-08 22:30 
AnswerRe: Outlook style UI sample code Pin
Vasudevan Deepak Kumar21-May-08 23:11
Vasudevan Deepak Kumar21-May-08 23:11 
AnswerRe: Outlook style UI sample code Pin
Shree22-May-08 0:03
Shree22-May-08 0:03 
Questiondatabase Pin
benjamin yap21-May-08 22:28
benjamin yap21-May-08 22:28 
AnswerRe: database Pin
Programm3r22-May-08 3:12
Programm3r22-May-08 3:12 
QuestionHow to Cancel Text_Changed event ? Pin
hdv21221-May-08 22:27
hdv21221-May-08 22:27 
AnswerRe: How to Cancel Text_Changed event ? Pin
dan!sh 21-May-08 23:01
professional dan!sh 21-May-08 23:01 
GeneralRe: How to Cancel Text_Changed event ? Pin
hdv21221-May-08 23:25
hdv21221-May-08 23:25 
GeneralRe: How to Cancel Text_Changed event ? Pin
Laddie21-May-08 23:42
Laddie21-May-08 23:42 
AnswerNot exactly what you asked for Pin
Vikram A Punathambekar22-May-08 0:28
Vikram A Punathambekar22-May-08 0:28 
GeneralRe: Not exactly what you asked for Pin
hdv21222-May-08 0:31
hdv21222-May-08 0:31 
AnswerRe: How to Cancel Text_Changed event ? Pin
Reelix22-May-08 3:01
Reelix22-May-08 3:01 
AnswerRe: How to Cancel Text_Changed event ? Pin
Spacix One22-May-08 11:50
Spacix One22-May-08 11:50 
QuestionReg: EmailID Validation Pin
Member 400849221-May-08 22:09
Member 400849221-May-08 22:09 
AnswerRe: Reg: EmailID Validation Pin
Nick K21-May-08 22:38
Nick K21-May-08 22:38 
AnswerRe: Reg: EmailID Validation Pin
Vasudevan Deepak Kumar21-May-08 23:07
Vasudevan Deepak Kumar21-May-08 23:07 

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.