| | |
Writing to EventLog - Shalvin
Please support our C# advertiser: Intel Parallel Studio Home
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 ado.net algorithm array barchart bitmap box broadcast buttons c# check checkbox client color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development display draganddrop drawing encryption enum event excel file files form format formbox forms formupdate function gdi+ httpwebrequest image index input install java label linux list listbox listener mandelbrot math mouseclick mysql networking operator packaging parse path photoshop picturebox pixelinversion post programming radians regex remote remoting richtextbox robot serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation visualstudio webbrowser wfa windows winforms wpf xml



