My.Resources


My.Resources provides access to the application’s resources. Its ResourceManager property returns a reference to a ResourceManager object attached to the project’s resources. You can use this object to retrieve the application’s resources.

My.Resources also provides strongly typed properties that return the application’s resources. For example, if you create a string resource named Greeting, the following code sets the form’s caption to that string’s value:

  Me.Text = My.Resources.Greeting 

See Chapter 27 for more information on using My.Resources to access the application’s resources.




Visual Basic 2005 with  .NET 3.0 Programmer's Reference
Visual Basic 2005 with .NET 3.0 Programmer's Reference
ISBN: 470137053
EAN: N/A
Year: 2007
Pages: 417

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net