| | |
Writing to EventLog - Shalvin
Please support our C# advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
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); }
Similar Threads
- Code Snippet: FileUpload Control - Shalvin (ASP.NET)
- Code Snippet: aspnet_regsql - Shalvin aspnet (ASP.NET)
- Code Snippet: Using Code Access Security (CAS) to programatically refuse writing to a drive - Shalvin (C#)
| Thread Tools | Search this Thread |
.net access algorithm animation array asp avltree bitmap box c# check checkbox client column combobox control conversion csharp database datagrid datagridview datagridviewcheckbox dataset datetime degrees directrobot display draganddrop drawing encryption enum equation excel file form format formatting formbox forms formupdate function gdi+ hash image input install java leak linux list math mouseclick mp3 mysql namevaluepairs native networking operator packaging path photoshop picturebox pixelinversion post powerpacks print process programming radians regex remoting reporting richtextbox robot safari server sleep snooze socket sql statistics string table tables tcp text textbox thread time timer update usercontrol usercontrols validation visualstudio webbrowser wfa winforms wpf xml



