Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

If it's called "road.dll" then you'd just set the textbox.Text to "road.dll".

 

You need to be more specific about what you want, if you know the dll name then asking how to get the name seems to be a bit pointless

.Net allows software to be written for any version of Windows and not break like Unmanaged applications unless using Unmanaged procedures like APIs. If your program uses large amounts of memory but releases it when something else needs it, then what's the problem?
  • 4 months later...
Posted

This works great, except I can't figure out how to get

rid of the whole programpath?

 

Everything in the listbox shows as "C:\program files\Test Application\Forms\Reports\filename.xxx

I just want the filename.xxx to show up

  • Leaders
Posted

to get just the file name / extension.

       Dim strFiles As String() = IO.Directory.GetFiles("C:\", "*.bmp")
       Dim strBmp As String
       For Each strBmp In strFiles
           Dim strName As New IO.FileInfo(strBmp) '/// this will return the name only ( eg: mybmp.BMP )
           Console.WriteLine(strName.Name)
       Next

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...