Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
currently I am having my resource file in my assembly only, so in Resourcemanager I am using it like ResourceManager(namespace.Login, GetType(LoginForm).Assembly)

Suppose I have resource file Login.resx kept on path C:/login.resx, Now I want to use this file in function ResourceManager, but I am not getting how to do it
so can anybody please help me.
Posted

1 solution

I got the solution :
1.First keep the resourse files in some folder like C://abc/resource.resx
2.Compile those file using visual studio command prompt: resgen resource.resx
3.use the below code to acces the file
Dim rm As ResourceManager
rm = ResourceManager.CreateFileBasedResourceManager("resource", "C:\abc", Nothing)
 
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