ResourceSet demo : Resources « GUI « VB.Net






ResourceSet demo

  

Imports System
Imports System.Resources

Module Module1

  Sub Main()

    Dim Rs As New ResourceSet("my.resources")

    Console.WriteLine(Rs.GetString("first", True))
    Console.WriteLine(Rs.GetString("second", True))
    Console.WriteLine(Rs.GetString("third", True))
    Console.WriteLine(Rs.GetString("fourth", True))
    Console.WriteLine(Rs.GetString("not here", True))
    Console.WriteLine(Rs.GetDefaultReader.ToString())

    Rs.Close()
  End Sub
End Module

   
    
  








Related examples in the same category

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