Jump to content
Xtreme .Net Talk

Recommended Posts

  • *Experts*
Posted

I'm finishing up an About box and I'd like to fill a listbox or textbox with info about the currently loaded DLLs - their version numbers, dates, etc. I'm also loading DLLs dynamically so the main MDI form (which will host the About box) will need to scan ALL of the loaded DLLs including the ones loaded dynamically and the .NET framework DLLs.

 

I'm about 99% sure it can be done, as I can see the info being spit out into the Debug window in the IDE (at lease the file location of the DLL).

 

Any ideas?

 

Thanks,

Ner

"I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
  • *Experts*
Posted
Found this after a few minutes of messing around:
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
       Dim pm As System.Diagnostics.ProcessModuleCollection = Process.GetCurrentProcess.Modules
       Dim p As System.Diagnostics.ProcessModule

       For Each p In pm
           ListBox1.Items.Add(p.FileName & " (version " & p.FileVersionInfo.ProductVersion & ")")
       Next
   End Sub

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...