Click here to Skip to main content
15,880,905 members
Please Sign up or sign in to vote.
1.00/5 (1 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 13-Feb-20 6:38am

1 solution

You can instantiate a ResourceManager from an assembly file.
From mwjones (Resources in an external file [SOLVED] | DaniWeb[^]):
VB
'' 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[^]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900