Use the System.Diagnostics.EventLog class. At is simplest you can use:
System.Diagnostics.EventLog.WriteLog("applicationN ame","error message");
"Gas" <en****@hotmail.com> wrote in message
news:Ol**************@TK2MSFTNGP11.phx.gbl...
Hi,
Can anyone tell me how can I log an Windows Event Log using C#?
Gas