I have the following code to list all the users in my AD tree and populate a treeview from it:
Sub FillActiveDirectoryTreeView(ByRef tvw As TreeView, ByVal TopLevelDirEntriesArray As DirectoryEntry)
Dim DirEntry As DirectoryEntry
Dim Nd As TreeNode
For Each DirEntry In...
I have the following to read the "System" Event Log.
SetupEventsListView()
Dim elEvent As New System.Diagnostics.EventLog("System")
Dim elEventEntry As System.Diagnostics.EventLogEntry
For Each elEventEntry In elEvent.Entries
Dim li As New...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.