The following code ran but I didn't find the Event Log named EventLog. Is EventLog supposed to be created with the Dim statement and the text "Write something to the EventLog" supposed to be written to EventLog? I am using VB.NET 2.0 here.
Thanks.
DanYeung
VB.NET:
Dim objListener As New EventLogTraceListener("EventLog")
Trace.Listeners.Add(objListener)
Trace.WriteLine("Write something to the EventLog")
Thanks.
DanYeung
Last edited by a moderator: