Reading Windows Event Log using code...

  • Thread starter Thread starter Charlie@CBFC
  • Start date Start date
C

Charlie@CBFC

Hi:

I would like to query the Windows Event log and display items in a DataGrid
on a WinForm. Is there a class in the framework to retieve data from the
Event log?

Thanks,
Charlie
 
Hi Charlie,

What you are looking for is the System.Diagnostics.EventLog class. It
will allow you to query/post event log messages.

HTH,
~d
 
Back
Top