extract my.setting.whatever from another exe

49 Views Asked by At

Ussing vb.net I extract an image from another exe using the following code.

My question is, is it also possible to extract a setting value from another exe using a simular method?

Try
Dim ExternalAssembly As Assembly = Assembly.LoadFile(Application.StartupPath & "/" & PluginPath)
Dim TargetPlugin As String = IO.Path.GetFileNameWithoutExtension(Application.StartupPath & "/" & PluginPath)
Dim ExternalResourceManager As Resources.ResourceManager

ExternalResourceManager = New Resources.ResourceManager(TargetPlugin & ".resources", ExternalAssembly)

If ExternalResourceManager.GetObject("MyStringRefrenceName") = Nothing Then
.Image = My.Resources.ResourceManager.GetString("MyStringRefrenceName").testing 'or is it value?

Msgbox(MyStringRefrenceName)

End If

 Catch ex As Exception

Msgbox("failed")

End Try
0

There are 0 best solutions below