Refer to a Visual Studio Resource By Name? - TechRepublic
Question
September 18, 2011 at 11:17 PM
dogknees

Refer to a Visual Studio Resource By Name?

by dogknees . Updated 14 years, 9 months ago

How do I access a resource in my code by name?

I can do this:
strTemp = MyApp.My.Resources.FileServerName

I want to do something like this:
strTemp = MyApp.My.Resources(“FileServerName”)
or
strResourceName = “FileServerName”
strTemp = MyApp.My.Resources(strResourceName)

I’m working in Visual Basic and want to use the code in a class member function.

Can anyone assist please?

This discussion is locked

All Comments