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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top