Learning by Example: The EventLog Control

The EventLog control application demonstrates how to create a composite control and then use it in a simple form-based application. In this case, you are creating a visual control based on a label control, a listbox control, a button control, and an EventLog component. In essence, you are giving the EventLog component a visual dimension. The EventLogControl object allows you to specify an event log in its Log property; it then shows you the log entries inside the ListBox control. This section also shows the actual test application, which shows an example of consuming the EventLogControl object. You can specify a log file by selecting the File menu and then the Log menu.

Key Concepts Covered

The EventLog ...

Get Visual Basic® Programmer's Guide to the .NET Framework Class Library now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.