Click here to Skip to main content
15,897,226 members
Articles / Programming Languages / Visual Basic

Eventlog Viewer

Rate me:
Please Sign up or sign in to vote.
4.50/5 (12 votes)
14 Jun 20062 min read 79.4K   4.3K   47  
A control to view an event log.
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
    Inherits System.Windows.Forms.Form

    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing AndAlso components IsNot Nothing Then
            components.Dispose()
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Me.EventLogViewer1 = New autoFocus.Components.EventLogViewer
        Me.SuspendLayout()
        '
        'EventLogViewer1
        '
        Me.EventLogViewer1.Dock = System.Windows.Forms.DockStyle.Fill
        Me.EventLogViewer1.IsCategoryVisible = False
        Me.EventLogViewer1.IsEventIDVisible = False
        Me.EventLogViewer1.IsSourceVisible = False
        Me.EventLogViewer1.Location = New System.Drawing.Point(0, 0)
        Me.EventLogViewer1.Log = "Application"
        Me.EventLogViewer1.Name = "EventLogViewer1"
        Me.EventLogViewer1.Size = New System.Drawing.Size(882, 589)
        Me.EventLogViewer1.TabIndex = 0
        '
        'Form1
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(882, 589)
        Me.Controls.Add(Me.EventLogViewer1)
        Me.Name = "Form1"
        Me.Text = "Test App"
        Me.ResumeLayout(False)

    End Sub
    Friend WithEvents EventLogViewer1 As autoFocus.Components.EventLogViewer

End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior)
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions