ResourceReader demo : Resources « GUI « VB.Net






ResourceReader demo

  

Imports System.Resources
Imports System.Collections

Module Module1
  Sub Main()
    Dim reader = New ResourceReader("my.resources")
    Dim en As IDictionaryEnumerator = reader.GetEnumerator()

    Do While (en.MoveNext)
      Console.WriteLine("Name: {0} - Value: {1}", _
                  en.Key.ToString().PadRight(10, " "), _
                  en.Value)
    Loop
    reader.Close()
    Dim rm As ResourceManager
    rm = ResourceManager.CreateFileBasedResourceManager("my", ".", Nothing)
    Console.WriteLine(rm.GetString("first"))
  End Sub

End Module

   
    
  








Related examples in the same category

1.ResXResourceWriter Demo
2.ResourceSet demo
3.ResourceWriter demo
4.Localization: Find Resources-VB\Module1.vb