Click here to Skip to main content
14,449,862 members
Rate this:
Please Sign up or sign in to vote.
See more:
How to extract File (.txt or .png or .exe) From Another File .exe using script vb.net

What I have tried:

I tried to use ResourceManager But i Failed ūüėź ...
Posted
Updated 5 days ago

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

You can instantiate a ResourceManager from an assembly file.
From mwjones (Resources in an external file [SOLVED] | DaniWeb[^]):
'' hisFile = path of assembly with the resource
'' hisResourceName = name of the resource
Dim myAssembly As Assembly = Assembly.LoadFile(hisFile)
Dim resourceManager As ResourceManager = new ResourceManager("app.resources", myAssembly)
Dim myData() As Byte = GetResource(hisResourceName, myAssembly)
ResourceManager Class (System.Resources) | Microsoft Docs[^]
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100