-
C# (
http://www.daniweb.com/forums/forum61.html)
| Shalvin | Mar 31st, 2008 2:20 am | |
| Writing to EventLog - Shalvin 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. |
using System.Diagnostics;
private void Form1_Load(object sender, EventArgs e)
{
EventLog evlog = new EventLog("Application");
evlog.Source = "Shalvin";
evlog.WriteEntry("Shalvin.com", EventLogEntryType.Information);
}
| All times are GMT -4. The time now is 9:36 pm. | |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC