473,407 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Open EventLog

Hi all
i have made an aplication, that uses Eventlog object, my problem is
i need to open the eventlog in my aplication with all entrys how can i do
this ?

thks
JSB

PS : i need to open the window in my aplication with all events that i have
written .. :D

Jul 21 '05 #1
2 1244
Hi,

Module Module1
Sub Main()
Dim evl As New EventLog("Application")

Dim str As String

str = "No entries: " & evl.Entries.Count
Console.WriteLine(str)
For Each entry As EventLogEntry In evl.Entries
Dim strEntry As String
strEntry = String.Format("{0} {1}", entry.EventID, entry.Source)
Console.WriteLine(strEntry)
Next

Console.WriteLine(str)
End Sub
End Module

Ken
------------------
"Joăo Santa Bárbara" <jo****@i24portugal.com> wrote in message
news:uj**************@TK2MSFTNGP11.phx.gbl...
Hi all
i have made an aplication, that uses Eventlog object, my problem is
i need to open the eventlog in my aplication with all entrys how can i do
this ?

thks
JSB

PS : i need to open the window in my aplication with all events that i
have
written .. :D

Jul 21 '05 #2
thks .. :D

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:uQ**************@TK2MSFTNGP12.phx.gbl...
Hi,

Module Module1
Sub Main()
Dim evl As New EventLog("Application")

Dim str As String

str = "No entries: " & evl.Entries.Count
Console.WriteLine(str)
For Each entry As EventLogEntry In evl.Entries
Dim strEntry As String
strEntry = String.Format("{0} {1}", entry.EventID, entry.Source) Console.WriteLine(strEntry)
Next

Console.WriteLine(str)
End Sub
End Module

Ken
------------------
"Joăo Santa Bárbara" <jo****@i24portugal.com> wrote in message
news:uj**************@TK2MSFTNGP11.phx.gbl...
Hi all
i have made an aplication, that uses Eventlog object, my problem is
i need to open the eventlog in my aplication with all entrys how can i do this ?

thks
JSB

PS : i need to open the window in my aplication with all events that i
have
written .. :D


Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jacob Colding | last post by:
Hello, I have created a a logging mechanism, that writes mesages to a custom event log. On each check it verifies whether the requested source is registered to the "IPS" log. If not, it changes...
2
by: Next | last post by:
Hello all, I have a windows service that was suppose to write some events into its own EventLog. I created the EventLog using the component on VS 2003 toolbar Added an installer for it. Set...
1
by: MAL | last post by:
Hello, I am writing a service program that writes to a custom EventLog. I would like the two classes used in the service to write messages to the same log ideally using a different Source name...
2
by: Joăo Santa Bárbara | last post by:
Hi all i have made an aplication, that uses Eventlog object, my problem is i need to open the eventlog in my aplication with all entrys how can i do this ? thks JSB PS : i need to open the...
1
by: martin | last post by:
Hi, I'm having some problems with the System.Diagnostics.EventLog class in .NET 2.0 I need to recreate an event message source inside a new log but the messages keeps ending up in the old...
3
by: Ben | last post by:
I am trying to write an eventlog monitor. I am using the sample code provided by VB2005 SDK as the bases for my application. I need to monitor all three logs (application, system, and security)....
0
by: rene | last post by:
I'm trying to use costome categories in my eventlog for a program I'm writing. But I have some problems with it, I cant get it to work. Checklist for how I did this. 1. Created a...
1
by: Jeff | last post by:
hi ..Net 2.0 I've created the code below and think I've executed it. After I thought I've executed it I checked in EventLog on the computer (win2k3) and no entry was added. This could mean 2...
0
by: Dave Raskin | last post by:
I am self hosting a Web Service in a Windows service. I am trying to start the service using the NT AUTHORITY\NetworkService account. I get a NullReferenceException on ServiceHost.Open() in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.