User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 374,571 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,687 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser:
Mar 31st, 2008
Views: 1,180
EventViewer can be accessed by Selecting Event Viewer from Administrative Tools of Control Panel. This code snippet will add an Entry called Shalvin inside the Application section.
Last edited : Apr 8th, 2008.
csharp Syntax | 3 stars
  1. using System.Diagnostics;
  2.  
  3. private void Form1_Load(object sender, EventArgs e)
  4. {
  5. EventLog evlog = new EventLog("Application");
  6. evlog.Source = "Shalvin";
  7. evlog.WriteEntry("Shalvin.com", EventLogEntryType.Information);
  8. }
Post Comment

Only community members can submit or comment on code snippets. You must register or log in to contribute.

DaniWeb Marketplace (Sponsored Links)
All times are GMT -4. The time now is 5:48 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC